async def test_get_client(self): network = Network(verify=True) client1 = network.get_client() client2 = network.get_client(verify=True) client3 = network.get_client(max_redirects=10) client4 = network.get_client(verify=True) client5 = network.get_client(verify=False) client6 = network.get_client(max_redirects=10) self.assertEqual(client1, client2) self.assertEqual(client1, client4) self.assertNotEqual(client1, client3) self.assertNotEqual(client1, client5) self.assertEqual(client3, client6) await network.aclose()
async def test_aclose(self): network = Network(verify=True) network.get_client() await network.aclose()