'Reproduces the issue at https://github.com/andresriancho/w3af/issues/474
where a "view" call overwrites any previously set value with the default'

def test_menu_simple_save_with_view(self):

    commands_to_run = ['plugins    crawl    config    dir_file_bruter', 'set    file_wordlist    /etc/passwd', 'view', 'back', 'plugins    crawl    config    dir_file_bruter', 'view', 'back', 'exit']
    self.console = ConsoleUI(commands=commands_to_run, do_upd=False)
    self.console.sh()
    expected_start_with = ('    /etc/passwd            ', 'The    configuration    has    been    saved.')
    (assert_result, msg) = self.all_expected_substring_in_output(expected_start_with)
    self.assertTrue(assert_result, msg)
