def assert_connected(self, conn, client):
self.assertIsInstance(conn.client_protocol, DummyClientProtocol)<EOL>self.assertEqual(conn.client_protocol.side, "<STR_LIT>")<EOL>self.assertEqual(conn.client_protocol.connected, True)<EOL>self.assertEqual(conn.client_protocol.disconnected_reason, None)<EOL>self.assertIsInstance(conn.server_protocol, DummyServerProtocol)<EOL>self.assertEqual(conn.server_protocol.side, "<STR_LIT>")<EOL>self.assertEqual(conn.server_protocol.connected, True)<EOL>self.assertEqual(conn.server_protocol.disconnected_reason, None)<EOL>self.assertEqual(conn.connected, True)<EOL>self.assertEqual(conn.pending, False)<EOL>self.successResultOf(conn._accept_d)<EOL>self.successResultOf(conn._connected_d)<EOL>self.assertNoResult(conn._finished_d)<EOL>self.assertEqual(conn.client_protocol, client)<EOL>
Assert that a connection is connected to a client.