#NEWLINE# @ unittest . skipIf ( ( threading is None ) , 'Test requires threading' ) #NEWLINE# def test_cache_backend( self ) : #NEWLINE# #INDENT# kv = KVStore ( ) #NEWLINE# cache_backends = [ ] #NEWLINE# def thread_cache_backend( ) : #NEWLINE# #INDENT# cache_backends . append ( kv . cache ) #NEWLINE# #UNINDENT# for x in range ( 2 ) : #NEWLINE# #INDENT# t = threading . Thread ( target = thread_cache_backend ) #NEWLINE# t . start ( ) #NEWLINE# t . join ( ) #NEWLINE# #UNINDENT# self . assertNotEqual ( cache_backends [ 0 ] , cache_backends [ 1 ] )