From f7f7e3860a95ea9a754894faceb865706f4caaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 27 Oct 2015 16:51:03 +0100 Subject: [PATCH] Even more tests --- tests/src/blah.tar.bz2 | Bin 0 -> 186 bytes tests/src2/blah.conf | 1 + tests/test.py | 8 +++++++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/src/blah.tar.bz2 create mode 100644 tests/src2/blah.conf diff --git a/tests/src/blah.tar.bz2 b/tests/src/blah.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..4aeb2cd43bfa9b20ca5c79ec57fc49910f73170a GIT binary patch literal 186 zcmV;r07d^oT4*^jL0KkKS;K#TtpEU|`-Q?00sue(e}DwQdu85000aO600=MuxuJ|E zCW8cG85m3wsP#Q2fDHfu097GIMpHCs(rqI~^-ojNU#4}vM#ZuOtb{}`;bAsBsBJi; zh$g`}qta@bxV)@nWVnv`+=>!N!pW$k5&*n&!ZjpfLV~Og2gDIbg^i%Tj0wsIXG5F5 oy|OkdHiwn#)jc%++>T1LEq}GC@aL-=kq5DNBvXY63^(`+(7TIGO#lD@ literal 0 HcmV?d00001 diff --git a/tests/src2/blah.conf b/tests/src2/blah.conf new file mode 100644 index 0000000..484ba93 --- /dev/null +++ b/tests/src2/blah.conf @@ -0,0 +1 @@ +This is a test. diff --git a/tests/test.py b/tests/test.py index d457c26..dc152d7 100644 --- a/tests/test.py +++ b/tests/test.py @@ -17,7 +17,13 @@ class TestBasic(unittest.TestCase): self.maxDiff = None self.curpath = os.getcwd() - def test_specific(self): + def test_specific_valid(self): + src = os.path.join(self.curpath, 'tests/src2') + dst = os.path.join(self.curpath, 'tests/dst') + spec = KittenGroomerSpec(src, dst) + spec.processdir() + + def test_specific_invalid(self): src = os.path.join(self.curpath, 'tests/src') dst = os.path.join(self.curpath, 'tests/dst') spec = KittenGroomerSpec(src, dst)