#NEWLINE# def test_with_class_decorator_and_custom_kw( self ) : #NEWLINE# #INDENT# outer = self #NEWLINE# @ requests_mock . mock ( kw = 'custom_m' ) #NEWLINE# class Decorated ( object ) : #NEWLINE# #INDENT# def test_will_be_decorated( self , **kwargs ) : #NEWLINE# #INDENT# outer . assertMockStarted ( ) #NEWLINE# outer . _do_test ( kwargs [ 'custom_m' ] ) #NEWLINE# #UNINDENT# def will_not_be_decorated( self ) : #NEWLINE# #INDENT# outer . assertMockStopped ( ) #NEWLINE# #UNINDENT# #UNINDENT# decorated_class = Decorated ( ) #NEWLINE# self . assertMockStopped ( ) #NEWLINE# decorated_class . test_will_be_decorated ( ) #NEWLINE# self . assertMockStopped ( ) #NEWLINE# decorated_class . will_not_be_decorated ( ) #NEWLINE# self . assertMockStopped ( )