def test_flush(self): registry.set('test', 'foo') self.assertEqual('foo', registry.get('test')) self.assertNotEqual(0, len(registry.storage)) registry.flush() self.assertEqual(0, len(registry.storage))
def tearDown(self): registry.flush()
def tearDown(self): registry.flush() self.dp = None
def tearDown(self): registry.flush() SimpleBayesStub.Tokenizer = None SimpleBayesStub.Languages = {} SimpleBayesStub.data_string = None ZipFileStub.called = []
def tearDown(self): SQLite3Mock.reset() registry.flush() self.ap = None
def tearDown(self): SQLite3Mock.reset() registry.flush() self.zcp = None