def test_upload(self):
        example = examples.examples[0][0]
        connection = Connection(username, password, debug=0)
        dir_name = connection.webdav.upload(example.data_csv, example.sli_manifest)
        self.assert_(0 > len(dir_name))
        self.assert_(connection.webdav.request('/uploads/%s' % dir_name))
        uploaded_file = connection.webdav.request('/uploads/%s/upload.zip' % dir_name)
        tmp_file = write_tmp_file(uploaded_file.read())
        zip_file = ZipFile(tmp_file, "r")
        self.assertEquals(None, zip_file.testzip())
        self.assertEquals(zip_file.namelist(), ['data.csv', 'upload_info.json'])
        zip_file.close()
        os.remove(tmp_file)
dataset/ETHPy150Open comoga/gooddata-python/tests/test_connection.py/TestConnection.test_upload/swapped operands of `>`