def setUp(self): with transient_internet(self.host): self.server = self.imap_class(self.host, self.port)