Пример #1
0
 def test_can_get_true_boolean_value(self):
     flag = Flag('key', True, 'bool')
     argument = flag.get_flags()
     self.assertEqual(argument, ["--key"])
Пример #2
0
 def test_can_get_empty_string_value(self):
     flag = Flag('key', '', 'str')
     argument = flag.get_flags()
     self.assertEqual(argument, ["--key \"\""])