def test_clear(self): table_before_clear = dict(a=1, b=2, c=3) s = MemoryKeyValueStore() s._table = table_before_clear s.clear() nose.tools.assert_equal(s._table, {})
def test_clear(self): """ Test normal clear functionality. """ table_before_clear = dict(a=1, b=2, c=3) s = MemoryKeyValueStore() s._table = table_before_clear s.clear() self.assertEqual(s._table, {})