#NEWLINE# @ freeze_time ( '2015-07-6 8:15:0' ) #NEWLINE# def test_valid( self ) : #NEWLINE# #INDENT# lease = Lease ( '192.168.0.1' , self . lease_data ) #NEWLINE# self . assertTrue ( lease . valid ) #NEWLINE# lease . end = datetime ( 2015 , 7 , 6 , 13 , 57 , 4 ) #NEWLINE# self . assertTrue ( lease . valid ) #NEWLINE# lease . end = datetime ( 2015 , 7 , 6 , 6 , 57 , 4 ) #NEWLINE# self . assertFalse ( lease . valid ) #NEWLINE# lease . start = datetime ( 2015 , 7 , 6 , 12 , 57 , 4 ) #NEWLINE# lease . end = datetime ( 2015 , 7 , 6 , 13 , 57 , 4 ) #NEWLINE# self . assertFalse ( self . valid )