@mock_ec2
def test_decorater_wrapped_gets_set():
 test_decorater_wrapped_gets_set.__wrapped__.__name__.should.equal(u'test_decorater_wrapped_gets_set')

@ mock_ec2 def test_decorater_wrapped_gets_set ( ) : test_decorater_wrapped_gets_set . __wrapped__ . __name__ . should . equal ( u'test_decorater_wrapped_gets_set' )
moto decorators __wrapped__ should get set to the tests function .