#NEWLINE# def test_findWhere_None( self ) : #NEWLINE# #INDENT# '.findWhere returns None if no results found.' #NEWLINE# while True : #NEWLINE# #INDENT# nonexistant_session = ( TEST_SESSION_PREFIX + str ( random . randint ( 0 , 9999 ) ) ) #NEWLINE# if ( not t . has_session ( nonexistant_session ) ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# self . assertIsNone ( t . findWhere ( { #NEWLINE# #INDENT# 'session_name' : nonexistant_session , #NEWLINE# #UNINDENT# } ) )