test: memcache: flush all keys after each test

This commit is contained in:
Tomasz Grabiec
2014-10-17 16:09:55 +02:00
parent 6ed212e7c6
commit e3fa358075

View File

@@ -121,6 +121,9 @@ class MemcacheTest(unittest.TestCase):
def flush(self):
self.assertEqual(call('flush_all\r\n'), b'OK\r\n')
def tearDown(self):
self.flush()
class TcpSpecificTests(MemcacheTest):
def test_recovers_from_errors_in_the_stream(self):
with tcp_connection() as conn: