예제 #1
0
 def test_negative_input(self, value):
     with self.assertRaises(SystemExit):
         cmd_input(value)
예제 #2
0
 def test_float_input(self, value):
     self.assertFalse(cmd_input(value), "Expected result: False")
예제 #3
0
 def test_int_input(self, value):
     self.assertIsNone(cmd_input(value), "Expected result: None")
예제 #4
0
 def test_na_str(self, value):
     with self.assertRaises(SystemExit):
         cmd_input(value)
예제 #5
0
 def test_input_exit(self):
     with self.assertRaises(SystemExit):
         cmd_input("exit")