#NEWLINE# def test_direct_acenstors( self ) : #NEWLINE# #INDENT# self . klass = 'CreateAPIView' #NEWLINE# self . module = 'rest_framework.generics' #NEWLINE# self . inspector = Inspector ( self . klass , self . module ) #NEWLINE# self . assertItemsEqual ( [ x . __name__ for x in self . inspector . get_direct_ancestors ( ) ] , [ 'CreateModelMixin' , 'GenericAPIView' ] )