def setUp(self): self.conn = Connection.memory() if not os.path.exists(self.tmpdir): os.makedirs(self.tmpdir) self.assertEqual(os.listdir(self.tmpdir), [], 'Empty out the tmp directory')