#NEWLINE# def test_activate_doesnt_change_signature_for_method( ) : #NEWLINE# #INDENT# class TestCase ( object ) : #NEWLINE# #INDENT# def test_function( self , a , b = None ) : #NEWLINE# #INDENT# return ( self , a , b ) #NEWLINE# #UNINDENT# #UNINDENT# test_case = TestCase ( ) #NEWLINE# argspec = getargspec ( test_case . test_function ) #NEWLINE# decorated_test_function = responses . activate ( test_case . test_function ) #NEWLINE# assert ( argspec == getargspec ( argspec ) ) #NEWLINE# assert ( decorated_test_function ( 1 , 2 ) == test_case . test_function ( 1 , 2 ) ) #NEWLINE# assert ( decorated_test_function ( 3 ) == test_case . test_function ( 3 ) )