def test_get_multiple_numbers_return_type(self): self.assertEqual(list, type(q01.get_multiple_numbers(2, 10)))
def test_get_multiple_numbers_first_argument_negative_second_argument_positive( self): with self.assertRaises(ValueError): q01.get_multiple_numbers(-2, 9)
def test_get_multiple_numbers_valid_two_positive_integers(self): self.assertEqual([4, 6, 8, 10], q01.get_multiple_numbers(2, 10))
def test_get_multiple_numbers_two_negative_arguments(self): with self.assertRaises(ValueError): q01.get_multiple_numbers(-2, -4)
def test_get_multiple_numbers_both_arguments_zeros(self): with self.assertRaises(ValueError): q01.get_multiple_numbers(0, 0)
def test_get_multiple_numbers_second_argument_zero(self): with self.assertRaises(ValueError): q01.get_multiple_numbers(9, 0)
def test_get_multiple_numbers_first_argument_zero(self): with self.assertRaises(ValueError): q01.get_multiple_numbers(0, 9)
def test_get_multiple_numbers_invalid_two_positive_integers(self): """The first argument is greater than the second argument, which must be greater than the first one""" with self.assertRaises(ValueError): q01.get_multiple_numbers(10, 2)