summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/04_test_gbp_submodules.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/04_test_gbp_submodules.py b/tests/04_test_gbp_submodules.py
index 160e5b5..5fb5c29 100644
--- a/tests/04_test_gbp_submodules.py
+++ b/tests/04_test_gbp_submodules.py
@@ -2,6 +2,7 @@
import os
import shutil
+import tarfile
import tempfile
import gbp.git
@@ -107,4 +108,11 @@ def test_create_tarball():
"bzip2",
"9")
+def test_chacke_tarfile():
+ """Check the contents of the created tarfile"""
+ t = tarfile.open(os.path.join(tmpdir,"test_0.1.orig.tar.bz2"), 'r:*')
+ files = t.getmembers()
+ assert "test-0.1/.gitmodules" in [ f.name for f in files ]
+ assert len(files) == 6
+
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: