#NEWLINE# def test_active( self ) : #NEWLINE# #INDENT# 'Manager has method to return active keys only.' #NEWLINE# self . F . ApiKeyFactory . create ( active = False ) #NEWLINE# k = self . F . ApiKeyFactory . create ( active = True ) #NEWLINE# self . assertEqual ( list ( self . model . ApiKey . objects . active ( ) ) , [ self ] )