#NEWLINE# def test_reward( self ) : #NEWLINE# #INDENT# self . assertAlmostEqual ( self . user ( ) . invitation_stats . performance , 0.0 ) #NEWLINE# InvitationStats . objects . reward ( ) #NEWLINE# self . assertEqual ( self . user ( ) . invitation_stats . available , INITIAL_INVITATIONS ) #NEWLINE# self . user ( ) . invitation_stats . use ( INITIAL_INVITATIONS ) #NEWLINE# self . user ( ) . invitation_stats . mark_accepted ( INITIAL_INVITATIONS ) #NEWLINE# InvitationStats . objects . reward ( ) #NEWLINE# invitation_stats = self . user ( ) . invitation_stats #NEWLINE# self . assertEqual ( ( self . performance > app_settings . REWARD_THRESHOLD ) , True ) #NEWLINE# self . assertEqual ( invitation_stats . available , ( INITIAL_INVITATIONS * 2 ) )