예제 #1
0
 def test_save_and_load(self):
     n.assert_equal(3, hardhat.cache('test_file', lambda: 3, cache_dir = self.cache_dir))
     n.assert_equal(3, hardhat.cache('test_file', lambda: 4, cache_dir = self.cache_dir))
예제 #2
0
 def test_save_and_load(self):
     n.assert_equal(
         3, hardhat.cache('test_file', lambda: 3, cache_dir=self.cache_dir))
     n.assert_equal(
         3, hardhat.cache('test_file', lambda: 4, cache_dir=self.cache_dir))
예제 #3
0
 def test_save(self):
     n.assert_equal(3, hardhat.cache('test_file', lambda: 3, cache_dir = self.cache_dir))
     n.assert_true(os.path.exists(self.test_path))
예제 #4
0
 def test_save(self):
     n.assert_equal(
         3, hardhat.cache('test_file', lambda: 3, cache_dir=self.cache_dir))
     n.assert_true(os.path.exists(self.test_path))