def test_divisors_example_1(self): """Test get_divisors with 8 and [1, 2, 3].""" actual = doctest4_divisors.get_divisors(8, [1, 2, 3]) expected = [1, 2] self.assertEqual(expected, actual)
def test_divisors_example_2(self): """Test get_divisors with 4 and [-2, 0, 2].""" actual = doctest4_divisors.get_divisors(4, [-2, 0, 2]) expected = [-2, 2] self.assertEqual(expected, actual)