#NEWLINE# def test_find( self ) : #NEWLINE# #INDENT# self . assertEqual ( Invitation . objects . find ( invitation . invitation . key ) , self . invitation ) #NEWLINE# invitation = self . make_invalid ( ) #NEWLINE# self . assertEqual ( invitation . is_valid ( ) , False ) #NEWLINE# self . assertRaises ( Invitation . DoesNotExist , Invitation . objects . find , invitation . key ) #NEWLINE# self . assertEqual ( Invitation . objects . all ( ) . count ( ) , 0 ) #NEWLINE# self . assertRaises ( Invitation . DoesNotExist , Invitation . objects . find , '' )