def test_reduce_v1( self ): numbers, spec = [ 1, 2, 3, 4, 5 ], 15 fn = lambda x, y: x + y result = exercises.reduce_v1( fn, numbers ) self.assertEqual( result, spec )