def local_md5_threads_test(): radu = RadulaProxy(connection=boto.connect_s3()) args = vars(_parse_args(["local-md5"])) args.update({ "subject": 'test_file_not_found__intentional' }) radu.local_md5(**args)
def local_md5_threads_test(): # ensure original text with open(TEST_FILE, 'w') as test_file: test_file.write("data") radu = RadulaProxy(connection=boto.connect_s3()) # 'threads' needed args = vars(_parse_args(["local-md5", "-t", "2"])) args.update({"subject": TEST_FILE}) radu.local_md5(**args) out = sys.stdout.getvalue().strip() assert_equal('8d777f385d3dfec8815d20f7496026dc', out)
def local_md5_threads_test(): # ensure original text with open(TEST_FILE, 'w') as test_file: test_file.write("data") radu = RadulaProxy(connection=boto.connect_s3()) # 'threads' needed args = vars(_parse_args(["local-md5", "-t", "2"])) args.update({ "subject": TEST_FILE }) radu.local_md5(**args) out = sys.stdout.getvalue().strip() assert_equal('8d777f385d3dfec8815d20f7496026dc', out)
def local_md5_nosubject_test(): radu = RadulaProxy(connection=boto.connect_s3()) args = vars(_parse_args(["local-md5"])) radu.local_md5(**args)