Example #1
0
 def test_convert_argument_leaves_other_text_as_text(self):
     result = tasks.convert_argument("sometext")
     self.assertEqual("sometext", result)
Example #2
0
 def test_convert_argument_converts_false_to_boolean_false(self):
     result = tasks.convert_argument("false")
     self.assertEqual(False, result)
Example #3
0
 def test_convert_argument_converts_numeric_test_to_number(self):
     result = tasks.convert_argument("15")
     self.assertEqual(15, result)
Example #4
0
 def test_convert_argument_converts_true_to_boolean_true(self):
     result = tasks.convert_argument("true")
     self.assertEqual(True, result)