<s> from openstack_dashboard . test . integration_tests import helpers <EOL> class TestUserSettings ( helpers . TestCase ) : <EOL> def verify_user_settings_change ( self , changed_settings ) : <EOL> language = self . settings_page . settings_form . language . value <EOL> timezone = self . settings_page . settings_form . timezone . value <EOL> pagesize = self . settings_page . settings_form . pagesize . value <EOL> user_settings = ( ( "<STR_LIT>" , changed_settings [ "<STR_LIT>" ] , language ) , <EOL> ( "<STR_LIT>" , changed_settings [ "<STR_LIT>" ] , timezone ) , <EOL> ( "<STR_LIT>" , changed_settings [ "<STR_LIT>" ] , pagesize ) ) <EOL> for ( setting , expected , observed ) in user_settings : <EOL> self . assertEqual ( expected , observed , <EOL> "<STR_LIT>" <EOL> % ( setting , expected , observed ) ) <EOL> def test_user_settings_change ( self ) : <EOL> """<STR_LIT>""" <EOL> self . settings_page = self . home_pg . go_to_settings_usersettingspage ( ) <EOL> self . settings_page . change_language ( "<STR_LIT>" ) <EOL> self . settings_page . change_timezone ( "<STR_LIT>" ) <EOL> self . settings_page . change_pagesize ( "<STR_LIT>" ) <EOL> changed_settings = { "<STR_LIT>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" } <EOL> self . verify_user_settings_change ( changed_settings ) <EOL> self . settings_page . return_to_default_settings ( ) <EOL> self . verify_user_settings_change ( self . settings_page . DEFAULT_SETTINGS ) </s>
