def METHOD_NAME(self):
    repo_name = self.random_name()
    distribution = self.random_name()
    self.check_equal(self.post("/api/repos",
                     json={
                         "Name": repo_name,
                         "Comment": "fun repo",
                         "DefaultDistribution": distribution
                     }).status_code, 201)
    d = self.random_name()
    self.check_equal(
        self.upload("/api/files/" + d, "pyspi_0.6.1-1.3.dsc",
                    "pyspi_0.6.1-1.3.diff.gz",
                    "pyspi_0.6.1.orig.tar.gz").status_code, 200)
    resp = self.post("/api/repos/" + repo_name + "/file/" + d, params={'_async': True})
    self.check_equal(resp.status_code, 202)
    return resp.json()['ID'], repo_name