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))
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))
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))
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))