Commits

Giovanni Marco Dall'Olio committed a00f103

Refact: refactoring test unit

Comments (0)

Files changed (1)

 
 
 
+def test_goodparameters():
+    check_parameters(good_parameters, True)
 
-def test_parameters(parameters_list, should_they_return_error):
+def test_badparameters():
+    check_parameters(bad_parameters, False)
+
+def check_parameters(parameters_list, should_they_return_error):
     """
     Test if a list of lists of parameters should return an error or not.
 
 
 
 if __name__ == '__main__':
-    test_parameters(good_parameters, True)
-    test_parameters(bad_parameters, False)
+    pass