def test_get_even_numbers_only_odd(self): data = [1, 15, 27, -3, -5] result = exercises.get_even_numbers(data) original_data = data[:] self.assertListEqual([], result) self.assertListEqual(original_data, data, ORIGINAL_ARGUMENTS_MODIFIED)
def test_get_even_numbers_with_mixed(self): data = [1, 3, 3, 0, 4, 5, 17, 22, 209, 100, -2, -7, -90] original_data = data[:] result = exercises.get_even_numbers(data) self.assertListEqual([0, 4, 22, 100, -2, -90], result) self.assertListEqual(original_data, data, ORIGINAL_ARGUMENTS_MODIFIED)