Explorar o código

Added interface test for BaseBackend._forget

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
9cfa3e6a28
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      celery/tests/test_backends/test_base.py

+ 4 - 0
celery/tests/test_backends/test_base.py

@@ -43,6 +43,10 @@ class test_BaseBackend_interface(unittest.TestCase):
         self.assertRaises(NotImplementedError,
                 b.get_status, "SOMExx-N0Nex1stant-IDxx-")
 
+    def test__forget(self):
+        self.assertRaises(NotImplementedError,
+                b.forget, "SOMExx-N0Nex1stant-IDxx-")
+
     def test_store_result(self):
         self.assertRaises(NotImplementedError,
                 b.store_result, "SOMExx-N0nex1stant-IDxx-", 42, states.SUCCESS)