#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# FILE = open ( SECRET_LOCATION , 'r' ) #NEWLINE# self . secret = FILE . read ( ) #NEWLINE# FILE . close ( ) #NEWLINE# m = hashlib . md5 ( ) #NEWLINE# file = open ( TEST_TAR , 'rb' ) #NEWLINE# buffer = file . read ( ( 2 ** 20 ) ) #NEWLINE# while buffer : #NEWLINE# #INDENT# m . update ( buffer ) #NEWLINE# buffer = file . read ( ( 2 ** 20 ) ) #NEWLINE# file . close ( ) #NEWLINE# #UNINDENT# self . md5 = m . hexdigest ( ) #NEWLINE# FILE = open ( DATABASE_YAML , 'r' ) #NEWLINE# self . dbyaml = FILE . read ( ) #NEWLINE# FILE . close ( ) #NEWLINE# self . dbyaml = yaml . load ( self . dbyaml ) #NEWLINE# migration . setup_datastore ( self . dbyaml [ ':table' ] ) #NEWLINE# migration . setup_zookeeper ( migration . get_zk_locations ( ) )