Esempio n. 1
0
 def test_forget(self):
     with pytest.raises(NotImplementedError):
         KeyValueStoreBackend(self.app).forget('a')
Esempio n. 2
0
 def test_cleanup(self):
     assert not KeyValueStoreBackend(self.app).cleanup()
Esempio n. 3
0
 def test_delete(self):
     with pytest.raises(NotImplementedError):
         KeyValueStoreBackend(self.app).delete('a')
Esempio n. 4
0
 def test_mget(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend(self.app).mget(['a'])
Esempio n. 5
0
 def test_incr(self):
     with pytest.raises(NotImplementedError):
         KeyValueStoreBackend(self.app).incr('a')
Esempio n. 6
0
 def test_set(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend(self.app).set('a', 1)
Esempio n. 7
0
 def test_cleanup(self):
     self.assertFalse(KeyValueStoreBackend(self.app).cleanup())
Esempio n. 8
0
 def test_forget(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend().forget('a')
Esempio n. 9
0
 def test_set(self):
     with pytest.raises(NotImplementedError):
         KeyValueStoreBackend(self.app)._set_with_state(
             'a', 1, states.SUCCESS)
Esempio n. 10
0
 def test_delete(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend().delete('a')
Esempio n. 11
0
 def test_incr(self):
     with self.assertRaises(NotImplementedError):
         KeyValueStoreBackend().incr('a')
Esempio n. 12
0
 def test_forget(self):
     self.assertRaises(NotImplementedError,
                       KeyValueStoreBackend().forget, "a")
Esempio n. 13
0
 def test_delete(self):
     self.assertRaises(NotImplementedError,
                       KeyValueStoreBackend().delete, "a")
Esempio n. 14
0
 def test_mget(self):
     self.assertRaises(NotImplementedError, KeyValueStoreBackend().mget,
             ["a"])