def verify_denormalized_names(sbox):
    'detect denormalized names and name collisions'
    sbox.build(create_wc=False, empty=True)
    dumpfile_location = os.path.join(os.path.dirname(sys.argv[0]), 'svnadmin_tests_data', 'normalization_check.dump')
    load_dumpstream(sbox, svntest.actions.load_dumpfile(dumpfile_location))
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', '--check-normalization', sbox.repo_dir)
    expected_output_regex_list = ['.*Verified revision 0.', '.*Verified revision 1.', '.*Verified revision 2.', '.*Verified revision 3.', "WARNING 0x0003: Duplicate representation of path 'A/.*/.*lpha'", '.*Verified revision 4.', '.*Verified revision 5.', "WARNING 0x0004: Duplicate representation of path '/Q/.*lpha' in svn:mergeinfo property of 'A/.*'", '.*Verified revision 6.', '.*Verified revision 7.']
    if (svntest.main.fs_has_rep_sharing() and (not svntest.main.is_fs_type_bdb())):
        expected_output_regex_list.insert(0, '.*Verifying repository metadata.*')
    if (svntest.main.options.fsfs_sharding is not None):
        for x in range(0, (7 / svntest.main.options.fsfs_sharding)):
            expected_output_regex_list.insert(0, '.*Verifying.*metadata.*')
    if svntest.main.is_fs_log_addressing():
        expected_output_regex_list.insert(0, '.* Verifying metadata at revision 0.*')
    exp_out = svntest.verify.RegexListOutput(expected_output_regex_list)
    exp_err = svntest.verify.ExpectedOutput([])
    svntest.verify.verify_outputs("Unexpected error while running 'svnadmin verify'.", output, errput, exp_out, exp_err)
detect denormalized names and name collisions
def verify_denormalized_names(sbox):
    
    sbox.build(create_wc=False, empty=True)
    dumpfile_location = os.path.join(os.path.dirname(sys.argv[0]), 'svnadmin_tests_data', 'normalization_check.dump')
    load_dumpstream(sbox, svntest.actions.load_dumpfile(dumpfile_location))
    (exit_code, output, errput) = svntest.main.run_svnadmin('verify', '--check-normalization', sbox.repo_dir)
    expected_output_regex_list = ['.*Verified revision 0.', '.*Verified revision 1.', '.*Verified revision 2.', '.*Verified revision 3.', "WARNING 0x0003: Duplicate representation of path 'A/.*/.*lpha'", '.*Verified revision 4.', '.*Verified revision 5.', "WARNING 0x0004: Duplicate representation of path '/Q/.*lpha' in svn:mergeinfo property of 'A/.*'", '.*Verified revision 6.', '.*Verified revision 7.']
    if (svntest.main.fs_has_rep_sharing() and (not svntest.main.is_fs_type_bdb())):
        expected_output_regex_list.insert(0, '.*Verifying repository metadata.*')
    if (svntest.main.options.fsfs_sharding is not None):
        for x in range(0, (7 / svntest.main.options.fsfs_sharding)):
            expected_output_regex_list.insert(0, '.*Verifying.*metadata.*')
    if svntest.main.is_fs_log_addressing():
        expected_output_regex_list.insert(0, '.* Verifying metadata at revision 0.*')
    exp_out = svntest.verify.RegexListOutput(expected_output_regex_list)
    exp_err = svntest.verify.ExpectedOutput([])
    svntest.verify.verify_outputs("Unexpected error while running 'svnadmin verify'.", output, errput, exp_out, exp_err)