def test_wait_for_schema_agreement_uses_preloaded_results_if_given(self):
        preloaded_results = self._get_matching_schema_preloaded_results()

        self.assertTrue(self.control_connection.wait_for_schema_agreement(preloaded_results=preloaded_results))
        # the control connection should not have slept at all
        self.assertEqual(self.time.clock, 0)
        # the connection should not have made any queries if given preloaded results
        self.assertEqual(self.connection.wait_for_responses.call_count, 0)
wait_for_schema_agreement uses preloaded results if given for shared table queries
dataset/ETHPy150Open datastax/python-driver/tests/unit/test_control_connection.py/ControlConnectionTest.test_wait_for_schema_agreement_uses_preloaded_results_if_given