@@ -87,46 +87,27 @@ def test_status(self):
8787 def test_check_status_single (self ):
8888 """check_status works passing a single status"""
8989 self .assertTrue (self .tester .check_status (["in_construction" ]))
90- self .assertTrue (self .tester .check_status (["in_construction" ],
91- conn_handler = self .conn_handler ))
9290 self .assertFalse (self .tester .check_status (["queued" ]))
93- self .assertFalse (self .tester .check_status (["queued" ],
94- conn_handler = self .conn_handler ))
9591
9692 def test_check_status_exclude_single (self ):
9793 """check_status works passing a single status and the exclude flag"""
9894 self .assertTrue (self .tester .check_status (["public" ], exclude = True ))
99- self .assertTrue (self .tester .check_status (["public" ], exclude = True ,
100- conn_handler = self .conn_handler ))
10195 self .assertFalse (self .tester .check_status (["in_construction" ],
10296 exclude = True ))
103- self .assertFalse (self .tester .check_status (["in_construction" ],
104- exclude = True , conn_handler = self .conn_handler ))
10597
10698 def test_check_status_list (self ):
10799 """check_status work passing a list of status"""
108100 self .assertTrue (self .tester .check_status (
109101 ["in_construction" , "queued" ]))
110- self .assertTrue (self .tester .check_status (
111- ["in_construction" , "queued" ],
112- conn_handler = self .conn_handler ))
113102 self .assertFalse (self .tester .check_status (
114103 ["public" , "queued" ]))
115- self .assertFalse (self .tester .check_status (
116- ["public" , "queued" ], conn_handler = self .conn_handler ))
117104
118105 def test_check_status_exclude_list (self ):
119106 """check_status work passing a list of status and the exclude flag"""
120107 self .assertTrue (self .tester .check_status (
121108 ["public" , "queued" ], exclude = True ))
122- self .assertTrue (self .tester .check_status (
123- ["public" , "queued" ], exclude = True ,
124- conn_handler = self .conn_handler ))
125109 self .assertFalse (self .tester .check_status (
126110 ["in_construction" , "queued" ], exclude = True ))
127- self .assertFalse (self .tester .check_status (
128- ["in_construction" , "queued" ], exclude = True ,
129- conn_handler = self .conn_handler ))
130111
131112 def test_check_status_unknown_status (self ):
132113 """check_status raises an error if an invalid status is provided"""
@@ -136,13 +117,6 @@ def test_check_status_unknown_status(self):
136117 with self .assertRaises (ValueError ):
137118 self .tester .check_status (["foo" ], exclude = True )
138119
139- with self .assertRaises (ValueError ):
140- self .tester .check_status (["foo" ], conn_handler = self .conn_handler )
141-
142- with self .assertRaises (ValueError ):
143- self .tester .check_status (["foo" ], exclude = True ,
144- conn_handler = self .conn_handler )
145-
146120 def test_check_status_unknown_status_list (self ):
147121 """check_status raises an error if an invalid status list is provided
148122 """
@@ -152,13 +126,5 @@ def test_check_status_unknown_status_list(self):
152126 with self .assertRaises (ValueError ):
153127 self .tester .check_status (["foo" , "bar" ], exclude = True )
154128
155- with self .assertRaises (ValueError ):
156- self .tester .check_status (["foo" , "bar" ],
157- conn_handler = self .conn_handler )
158-
159- with self .assertRaises (ValueError ):
160- self .tester .check_status (["foo" , "bar" ], exclude = True ,
161- conn_handler = self .conn_handler )
162-
163129if __name__ == '__main__' :
164130 main ()
0 commit comments