1
from dput.util import run_command
2
from dput import upload
3
from dput.exceptions import UploadException
8
dput.core.CONFIG_LOCATIONS = {
9
os.path.abspath("./tests/dputng"): 0
14
popdir = os.path.abspath(os.getcwd())
15
os.chdir("tests/fake_package/fake-package-1.0")
16
stdout, stederr, ret = run_command("dpkg-buildpackage -us -uc -S")
17
if os.path.exists("../fnord_1.0_source.test.upload"):
18
os.unlink("../fnord_1.0_source.test.upload")
20
return os.path.abspath("tests/fake_package/fnord_1.0_source.changes")
24
""" Test the upload of a package """
29
def test_double_upload():
30
""" Test a double-upload (and force block) """
36
except UploadException: