コード例 #1
0
 def test_forget(self):
     with pytest.raises(NotImplementedError):
         KeyValueStoreBackend(self.app).forget('a')
コード例 #2
0
 def test_cleanup(self):
     assert not KeyValueStoreBackend(self.app).cleanup()
コード例 #3
0
 def test_delete(self):
     with pytest.raises(NotImplementedError):
         KeyValueStoreBackend(self.app).delete('a')
コード例 #4
0
 def test_mget(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend(self.app).mget(['a'])
コード例 #5
0
 def test_incr(self):
     with pytest.raises(NotImplementedError):
         KeyValueStoreBackend(self.app).incr('a')
コード例 #6
0
 def test_set(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend(self.app).set('a', 1)
コード例 #7
0
 def test_cleanup(self):
     self.assertFalse(KeyValueStoreBackend(self.app).cleanup())
コード例 #8
0
ファイル: test_base.py プロジェクト: enlavin/celery
 def test_forget(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend().forget('a')
コード例 #9
0
 def test_set(self):
     with pytest.raises(NotImplementedError):
         KeyValueStoreBackend(self.app)._set_with_state(
             'a', 1, states.SUCCESS)
コード例 #10
0
ファイル: test_base.py プロジェクト: enlavin/celery
 def test_delete(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend().delete('a')
コード例 #11
0
ファイル: test_base.py プロジェクト: enlavin/celery
 def test_incr(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend().incr('a')
コード例 #12
0
 def test_forget(self):
     self.assertRaises(NotImplementedError,
                       KeyValueStoreBackend().forget, "a")
コード例 #13
0
 def test_delete(self):
     self.assertRaises(NotImplementedError,
                       KeyValueStoreBackend().delete, "a")
コード例 #14
0
ファイル: test_base.py プロジェクト: WoLpH/celery
 def test_mget(self):
     self.assertRaises(NotImplementedError, KeyValueStoreBackend().mget,
             ["a"])