def test_negative_input(self, value): with self.assertRaises(SystemExit): cmd_input(value)
def test_float_input(self, value): self.assertFalse(cmd_input(value), "Expected result: False")
def test_int_input(self, value): self.assertIsNone(cmd_input(value), "Expected result: None")
def test_na_str(self, value): with self.assertRaises(SystemExit): cmd_input(value)
def test_input_exit(self): with self.assertRaises(SystemExit): cmd_input("exit")