def test_concat(azure): with azure.open(a, 'wb') as f: f.write(b'hello ') with azure.open(b, 'wb') as f: f.write(b'world') try: azure.rm(c) except: pass azure.concat(c, [a, b]) out = azure.cat(c) azure.rm(c) assert out == b'hello world'
def test_concat(azure): aplus = a + "+file1" bplus = b + "+file2" cplus = c + "+res" with azure.open(aplus, 'wb') as f: f.write(b'hello ') with azure.open(bplus, 'wb') as f: f.write(b'world') try: azure.rm(cplus) except: pass azure.concat(cplus, [aplus, bplus]) out = azure.cat(cplus) azure.rm(cplus) assert out == b'hello world'