def test_close_autodiscover_connections(self): discover( email=self.account.primary_smtp_address, credentials=self.account.protocol.credentials, retry_policy=self.retry_policy, ) close_connections()
def test_close_autodiscover_connections(self, m): # A live test that we can close TCP connections c = Credentials('leet_user', 'cannaguess') autodiscover_cache[('example.com', c)] = AutodiscoverProtocol( config=Configuration( service_endpoint= 'https://example.com/Autodiscover/Autodiscover.xml', credentials=c, auth_type=NTLM, retry_policy=FailFast(), )) self.assertEqual(len(autodiscover_cache), 1) close_connections()
def test_close_autodiscover_connections(self, m): # A live test that we can close TCP connections p = self.get_test_protocol() autodiscover_cache[(p.config.server, p.config.credentials)] = p self.assertEqual(len(autodiscover_cache), 1) close_connections()