'tests the user\'s settings options:
* changes the system\'s language
* changes the timezone
* changes the number of items per page (page size)
* changes the number of log lines to be shown per instance
* verifies all changes were successfully executed'

def test_user_settings_change(self):

    settings_page = self.home_pg.go_to_settings_usersettingspage()
    settings_page.change_language('es')
    self.assertTrue(settings_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(settings_page.find_message_and_dismiss(messages.ERROR))
    settings_page.change_timezone('Asia/Jerusalem')
    self.assertTrue(settings_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(settings_page.find_message_and_dismiss(messages.ERROR))
    settings_page.change_pagesize('30')
    self.assertTrue(settings_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(settings_page.find_message_and_dismiss(messages.ERROR))
    settings_page.change_loglines('50')
    self.assertTrue(settings_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(settings_page.find_message_and_dismiss(messages.ERROR))
    changed_settings = {'language': 'es', 'timezone': 'Asia/Jerusalem', 'pagesize': '30', 'loglines': '50'}
    self.verify_user_settings_change(settings_page, changed_settings)
    settings_page.return_to_default_settings()
    self.verify_user_settings_change(settings_page, settings_page.DEFAULT_SETTINGS)
