def load_bad_props(sbox):
    'svnadmin load with invalid svn: props'
    dump_str = b'SVN-fs-dump-format-version: 2\n\nUUID: dc40867b-38f6-0310-9f5f-f81aa277e06f\n\nRevision-number: 0\nProp-content-length: 56\nContent-length: 56\n\nK 8\nsvn:date\nV 27\n2005-05-03T19:09:41.129900Z\nPROPS-END\n\nRevision-number: 1\nProp-content-length: 99\nContent-length: 99\n\nK 7\nsvn:log\nV 3\n\n\r\n\nK 10\nsvn:author\nV 2\npl\nK 8\nsvn:date\nV 27\n2005-05-03T19:10:19.975578Z\nPROPS-END\n\nNode-path: file\nNode-kind: file\nNode-action: add\nProp-content-length: 10\nText-content-length: 5\nText-content-md5: e1cbb0c3879af8347246f12c559a86b5\nContent-length: 15\n\nPROPS-END\ntext\n\n\n'
    sbox.build(empty=True)
    exp_err = svntest.verify.RegexListOutput(['svnadmin: E125005:.*', 'svnadmin: E125005:.*', 'svnadmin: E125017:.*'], match_all=False)
    load_and_verify_dumpstream(sbox, [], exp_err, dumpfile_revisions, False, dump_str, '--ignore-uuid')
    svntest.actions.load_repo(sbox, dump_str=dump_str, bypass_prop_validation=True)
    svntest.actions.run_and_verify_svn(None, 'svn: E135000: ', 'pg', 'svn:log', '--revprop', '-r1', sbox.repo_url)
    svntest.actions.load_repo(sbox, dump_str=dump_str, bypass_prop_validation=False, normalize_props=True)
    (exit_code, output, _) = svntest.main.run_svn(None, 'pg', 'svn:log', '--revprop', '-r1', '--no-newline', sbox.repo_url)
    svntest.verify.verify_exit_code(None, exit_code, 0)
    if (output != ['\n', '\n']):
        raise svntest.Failure(('Unexpected property value %s' % output))
svnadmin load with invalid svn: props
def load_bad_props(sbox):
    
    dump_str = b'SVN-fs-dump-format-version: 2\n\nUUID: dc40867b-38f6-0310-9f5f-f81aa277e06f\n\nRevision-number: 0\nProp-content-length: 56\nContent-length: 56\n\nK 8\nsvn:date\nV 27\n2005-05-03T19:09:41.129900Z\nPROPS-END\n\nRevision-number: 1\nProp-content-length: 99\nContent-length: 99\n\nK 7\nsvn:log\nV 3\n\n\r\n\nK 10\nsvn:author\nV 2\npl\nK 8\nsvn:date\nV 27\n2005-05-03T19:10:19.975578Z\nPROPS-END\n\nNode-path: file\nNode-kind: file\nNode-action: add\nProp-content-length: 10\nText-content-length: 5\nText-content-md5: e1cbb0c3879af8347246f12c559a86b5\nContent-length: 15\n\nPROPS-END\ntext\n\n\n'
    sbox.build(empty=True)
    exp_err = svntest.verify.RegexListOutput(['svnadmin: E125005:.*', 'svnadmin: E125005:.*', 'svnadmin: E125017:.*'], match_all=False)
    load_and_verify_dumpstream(sbox, [], exp_err, dumpfile_revisions, False, dump_str, '--ignore-uuid')
    svntest.actions.load_repo(sbox, dump_str=dump_str, bypass_prop_validation=True)
    svntest.actions.run_and_verify_svn(None, 'svn: E135000: ', 'pg', 'svn:log', '--revprop', '-r1', sbox.repo_url)
    svntest.actions.load_repo(sbox, dump_str=dump_str, bypass_prop_validation=False, normalize_props=True)
    (exit_code, output, _) = svntest.main.run_svn(None, 'pg', 'svn:log', '--revprop', '-r1', '--no-newline', sbox.repo_url)
    svntest.verify.verify_exit_code(None, exit_code, 0)
    if (output != ['\n', '\n']):
        raise svntest.Failure(('Unexpected property value %s' % output))