From b9c7aad467ab94ac9fc3238f34936af0232f8b37 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Tue, 16 Apr 2019 22:47:20 +0200 Subject: [PATCH] Tests: Incude filter --- tests/tests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/tests.py b/tests/tests.py index e1636fb..32341b1 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -103,9 +103,13 @@ class ResticBackupTests(unittest.TestCase): ] with mock.patch(list_containers_func, fixtures.containers(containers=containers)): cnt = RunningContainers() - web_service = cnt.get_service('web') - self.assertNotEqual(web_service, None, msg="Web service not found") + web_service = cnt.get_service('web') + self.assertNotEqual(web_service, None, msg="Web service not found") + + mounts = list(web_service.filter_mounts()) + self.assertEqual(len(mounts), 1) + raise ValueError(mounts) def test_exclude(self): pass