From d4c1cdae226d32a2af7f9fc194275bd4819e1388 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 9 Sep 2017 11:08:00 +0200 Subject: [PATCH] test focus --- tests/test_compare.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_compare.py b/tests/test_compare.py index 82b3075..7b54a39 100644 --- a/tests/test_compare.py +++ b/tests/test_compare.py @@ -134,7 +134,11 @@ class TestCompare(unittest.TestCase): results = self.compare(opts, conf, tmp, len(dfiles)) self.assertTrue(results == expected) - compare(opts, conf, tmp) + # test compare from dotdrop + self.assertTrue(compare(opts, conf, tmp)) + # test focus + self.assertTrue(compare(opts, conf, tmp, focus=d4)) + self.assertFalse(compare(opts, conf, tmp, focus='/tmp/fake')) def main():