wheezy.caching / src / wheezy / caching / tests / test_patterns.py

Diff from to

src/wheezy/caching/tests/test_patterns.py

         self.one_pass.__enter__()
         assert self.one_pass.acquired
         self.one_pass.__exit__(None, None, None)
-        self.mock_cache.delete.assert_called_once_with('key', 'ns')
+        self.mock_cache.delete.assert_called_once_with('key', 0, 'ns')
         assert not self.one_pass.acquired
 
     def test_exit_not_acquired(self):
             'one_pass:key', ANY, 5, 'ns')
         self.mock_create_factory.assert_called_once_with()
         assert not self.mock_cache.set.called
-        self.mock_cache.delete.assert_called_once_with('one_pass:key', 'ns')
+        self.mock_cache.delete.assert_called_once_with(
+            'one_pass:key', 0, 'ns')
 
     def test_no_dependency(self):
         """ Create factory returned value.
             'one_pass:key', ANY, 5, 'ns')
         self.mock_create_factory.assert_called_once_with()
         self.mock_cache.set.assert_called_once_with('key', 'x', 10, 'ns')
-        self.mock_cache.delete.assert_called_once_with('one_pass:key', 'ns')
+        self.mock_cache.delete.assert_called_once_with(
+            'one_pass:key', 0, 'ns')
 
     def test_with_dependency(self):
         """ Create factory returned value.
             'one_pass:key', ANY, 5, 'ns')
         self.mock_create_factory.assert_called_once_with()
         self.mock_cache.set.assert_called_once_with('key', 'x', 10, 'ns')
-        self.mock_cache.delete.assert_called_once_with('one_pass:key', 'ns')
+        self.mock_cache.delete.assert_called_once_with(
+            'one_pass:key', 0, 'ns')
         self.mock_dependency.add.assert_called_once_with('master_key', 'key')
 
     @patch('wheezy.caching.patterns.OnePass')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.