def test_filter_even_numbers_only_odd(self): data = [1, 15, 27, -3, -5] result = exercises.filter_even_numbers(data) self.assertIsNone(None, result) self.assertListEqual([], data) # original data modified
def test_filter_even_numbers_with_mixed(self): data = [1, 3, 3, 0, 4, 5, 17, 22, 209, 100, -2, -7, -90] result = exercises.filter_even_numbers(data) self.assertIsNone(None, result) self.assertListEqual([0, 4, 22, 100, -2, -90], data) # original data modified