def test_simple_upload():
 group = worker.WalTransferGroup(FakeWalUploader())
 seg = FakeWalSegment((('1' * 8) * 3), explicit=True)
 group.start(seg)
 group.join()
 assert success(seg)

def test_simple_upload ( ) : group = worker . WalTransferGroup ( FakeWalUploader ( ) ) seg = FakeWalSegment ( ( ( '1' * 8 ) * 3 ) , explicit = True ) group . start ( seg ) group . join ( ) assert success ( seg )
model a case where there is no concurrency while uploading .