返回 DeepSeek-Reasonix
test_store.py
1 import unittest
2
3 from cache import store
4
5
6 class StoreTest(unittest.TestCase):
7 def test_round_trip(self):
8 store.put("hello", 1)
9 self.assertEqual(store.get("hello"), 1)
10
11 @unittest.skip("fails until put() uses model_scoped_key; see cache/store.py TODO")
12 def test_two_models_do_not_collide(self):
13 store.put("hello", 1)
14 store.put("hello", 2)
15 self.assertEqual(store.get("hello"), 1)
16
16 lines PYTHON