#NEWLINE# def test_user_creation( self ) : #NEWLINE# #INDENT# user = admin . create_user ( ** self . get_payload ( ) ) #NEWLINE# nose . ok_ ( ( self . pk is not None ) ) #NEWLINE# nose . eq_ ( user . is_active , True ) #NEWLINE# nose . eq_ ( user . role , Roles . USER )