@@ -1904,9 +1904,7 @@ def test_dictionary_accessors(self):
19041904 name = "fresh_one" ,
19051905 type = "Categorical" ,
19061906 meta_data = {"a" : 1 , "b" : 2 },
1907- rule = str (
1908- kh .Rule ("Ceil" , kh .Rule ("Product" , 3 , kh .Rule ("Random()" )))
1909- ),
1907+ rule = str (kh .Rule ("Ceil" , kh .Rule ("Product" , 3 , kh .Rule ("Random" )))),
19101908 )
19111909 self .assertEqual (
19121910 2 ,
@@ -2020,7 +2018,7 @@ def test_dictionary_accessors(self):
20202018 "SomeRuleForVariable" + variable_index * "i" ,
20212019 "an_operand" ,
20222020 2 ,
2023- kh .Rule ("SomeEmbeddedRule() " ),
2021+ kh .Rule ("SomeEmbeddedRule" ),
20242022 )
20252023 dictionary_copy .get_variable (variable_name ).rule = str (some_rule )
20262024 self .assertEqual (
@@ -2062,7 +2060,7 @@ def test_dictionary_accessors(self):
20622060 "SomeRuleForVariableBlock" + variable_block_index * "i" ,
20632061 "an_operand" ,
20642062 2 ,
2065- kh .Rule ("SomeEmbeddedRule() " ),
2063+ kh .Rule ("SomeEmbeddedRule" ),
20662064 )
20672065 dictionary_copy .get_variable_block (variable_block_name ).rule = str (
20682066 some_rule
@@ -2083,8 +2081,8 @@ def test_dictionary_accessors(self):
20832081 def test_dictionary_rule_construction (self ):
20842082 """Tests the Rule construction and serialization"""
20852083 rule_verbatims = [
2086- "SomeRule" ,
2087- b"SomeRule" ,
2084+ "SomeRule() " ,
2085+ b"SomeRule() " ,
20882086 'SomeRule("some_operand", 2)' ,
20892087 b'SomeRule("some_operand", 2)' ,
20902088 'SomeRule("some""operand", 2)' ,
@@ -2260,7 +2258,7 @@ def test_dictionary_rule_construction(self):
22602258 kh .Rule (b"SomeEmbeddedRule" , b"some_other_operand" ),
22612259 ),
22622260 kh .Rule (
2263- (
2261+ verbatim = (
22642262 b'SomeRule("some_operand", 2, '
22652263 b'SomeEmbeddedRule("some_other_operand"))'
22662264 )
0 commit comments