@@ -14,7 +14,7 @@ def test_to_json(self):
14
14
]
15
15
def_target = WorkflowRuleTarget ("WQ9963154bf3122d0a0558f3763951d916" , "1==1" , None , None )
16
16
config = WorkflowConfig (rules , def_target )
17
- self .assertEqual (self .is_json (config .to_json ()), True )
17
+ self .assertEqual (True , self .is_json (config .to_json ()))
18
18
19
19
def test_from_json (self ):
20
20
@@ -37,8 +37,8 @@ def test_from_json(self):
37
37
}
38
38
39
39
config = WorkflowConfig .json2obj (json .dumps (data ))
40
- self .assertEqual (len (config .task_routing .filters ), 3 )
41
- self .assertEqual (len (config .task_routing .default_filter ), 1 )
40
+ self .assertEqual (3 , len (config .task_routing .filters ))
41
+ self .assertEqual (1 , len (config .task_routing .default_filter ))
42
42
43
43
def test_from_json2 (self ):
44
44
@@ -51,8 +51,8 @@ def test_from_json2(self):
51
51
'default_filter' : {'priority' : None , 'queue' : 'WQYYYYY' , 'expression' : None ,
52
52
'timeout' : None }}}
53
53
config = WorkflowConfig .json2obj (json .dumps (data ))
54
- self .assertEqual (len (config .task_routing .filters ), 2 )
55
- self .assertEqual (len (config .task_routing .default_filter ), 4 )
54
+ self .assertEqual (2 , len (config .task_routing .filters ))
55
+ self .assertEqual (4 , len (config .task_routing .default_filter ))
56
56
57
57
def is_json (self , myjson ):
58
58
try :
0 commit comments