def test_do_stuff5(self): test_param = '' res = utility.do_stuff(test_param) self.assertEqual(res, 'please enter a num')
def test_do_stuff_number_equals_empty(self): test_param = '' result = utility.do_stuff(test_param) self.assertEqual(result, 'please enter number')
def test_do_stuff_is_instance_of_value_error(self): test_param = 'string' result = utility.do_stuff(test_param) self.assertIsInstance(result, ValueError)
def test_do_stuff_invalid_number(self): test_param = None result = utility.do_stuff(test_param) self.assertEqual(result, 'please enter number')
def test_do_stuff_equal_to_15(self): test_param = 10 result = utility.do_stuff(test_param) self.assertEqual(result, 15)