#NEWLINE# def test_resource_exists_valid_resource_id( self ) : #NEWLINE# #INDENT# Ticket ( self . env ) . insert ( ) #NEWLINE# r1 = Resource ( 'ticket' , 1 ) #NEWLINE# r2 = Resource ( 'ticket' , 2 ) #NEWLINE# self . assertTrue ( self . ticket_system . resource_exists ( r1 ) ) #NEWLINE# self . assertFalse ( self . ticket_system . resource_exists ( self ) )