#NEWLINE# def test_generate_default_creator( self ) : #NEWLINE# #INDENT# 'Generate classmethod can just take a single user.' #NEWLINE# u1 = self . F . UserFactory . create ( ) #NEWLINE# k = self . model . ApiKey . generate ( u1 ) #NEWLINE# self . assertEqual ( k . owner , u1 ) #NEWLINE# self . assertEqual ( k . created_by , self )