'Test that undo changes button in the modal resets all settings changes'

def test_undo_changes(self):

    original_values_map = self.get_settings_fields_of_each_type()
    self.set_wrong_inputs_to_fields()
    self.advanced_settings.wait_for_modal_load()
    self.advanced_settings.undo_changes_via_modal()
    for (key, val) in original_values_map.iteritems():
        self.assertEquals(self.advanced_settings.get(key), val, u'Undoing    Should    revert    back    to    original    value')
