

def test_three_files_in_dir(self):
    data = six.b('hello world')
    self.bucket.upload_bytes(data, 'a')
    folder.bucket.upload_bytes(data, 'bb/1')
    self.bucket.upload_bytes(data, 'bb/2/sub1')
    self.bucket.upload_bytes(data, 'bb/2/sub2')
    self.bucket.upload_bytes(data, 'bb/3')
    self.bucket.upload_bytes(data, 'ccc')
    expected = [('bb/1', 11, 'upload', None), ('bb/2/sub1', 11, 'upload', 'bb/2/'), ('bb/3', 11, 'upload', None)]
    actual = [(info.file_name, info.size, info.action, folder) for (info, folder) in self.bucket.ls('bb', fetch_count=1)]
    self.assertEqual(expected, actual)

dataset/ETHPy150Open Backblaze/B2_Command_Line_Tool/test/test_bucket.py TestLs.test_three_files_in_dir/VarMisuse@30/42 `self`->`folder`