コード例 #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
ファイル: test_cache.py プロジェクト: goupper/django-mysql
 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)