Ejemplo n.º 1
0
 def test_five(self):
     smallcache.set_local(0, 7)
     smallcache.set_local(1, 0)
     smallcache.set_local(2, 5)
     smallcache.set_local(3, 1)
     smallcache.set_local(4, 4)
     self.assertIsNone(smallcache.get(0))
     self.assertEqual(smallcache.get(1), 0)
     self.assertEqual(smallcache.get(2), 5)
     self.assertEqual(smallcache.get(3), 1)
     self.assertEqual(smallcache.get(4), 4)
Ejemplo n.º 2
0
 def test_five(self):
   smallcache.set_local(0, 7)
   smallcache.set_local(1, 0)
   smallcache.set_local(2, 5)
   smallcache.set_local(3, 1)
   smallcache.set_local(4, 4)
   self.assertIsNone(smallcache.get(0))
   self.assertEqual(smallcache.get(1), 0)
   self.assertEqual(smallcache.get(2), 5)
   self.assertEqual(smallcache.get(3), 1)
   self.assertEqual(smallcache.get(4), 4)
Ejemplo n.º 3
0
 async def test_unset(self):
     smallcache.set_local(0, 7)
     await smallcache.unset_global(0)
     self.assertIsNone(smallcache.get(0))
Ejemplo n.º 4
0
 def test_one(self):
     smallcache.set_local(0, 7)
     self.assertEqual(smallcache.get(0), 7)
Ejemplo n.º 5
0
 async def test_unset(self):
   smallcache.set_local(0, 7)
   await smallcache.unset_global(0)
   self.assertIsNone(smallcache.get(0))
Ejemplo n.º 6
0
 def test_one(self):
   smallcache.set_local(0, 7)
   self.assertEqual(smallcache.get(0), 7)