Make use of patch.stopall()

This commit is contained in:
Eric Torres
2019-04-17 11:53:05 -07:00
parent 3bbd2b2793
commit dbb5c0fa8b
5 changed files with 10 additions and 29 deletions

View File

@@ -34,5 +34,4 @@ class TestSnapshotProperties(unittest.TestCase):
self.assertIsInstance(Snapshot("/tmp/backup/snapshot").ctime, str)
def tearDown(self):
self.patched_path.stop()
self.patched_metadata.stop()
patch.stopall()