예제 #1
0
 def test_base_set_bad_value(self):
     with pytest.raises(ValueError) as excinfo:
         cache._base_set("foo", "key", "value")
     assert "'mode' should be" in str(excinfo.value)
예제 #2
0
 def test_base_set_bad_value(self):
     with pytest.raises(ValueError) as excinfo:
         cache._base_set('foo', 'key', 'value')
     assert "'mode' should be" in str(excinfo.value)