def test_sync_warnings(self):
        mock_handler = MockLoggingHandler()
        logger = logging.getLogger(management.__name__)
        logger.addHandler(mock_handler)
        sync_table(BaseInconsistent)
        sync_table(ChangedInconsistent)
        self.assertTrue('differing from the model type' in mock_handler.messages.get('warning')[0])
        if CASSANDRA_VERSION >= '2.1':
            sync_type(DEFAULT_KEYSPACE, BaseInconsistentType)
            mock_handler.reset()
            sync_type(DEFAULT_KEYSPACE, ChangedInconsistentType)
            self.assertTrue('differing from the model user type' in mock_handler.messages.get('warning')[0])
        logger.removeHandler(mock_handler)
Sets the font used by the text control to the specified font.
dataset/ETHPy150Open datastax/python-driver/tests/integration/cqlengine/management/test_management.py/InconsistentTable.test_sync_warnings--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/font_editor.py/CustomFontEditor._set_font