def dump_to_file(sbox):
    'svnadmin dump --file ARG'
    sbox.build(create_wc=False, empty=False)
    expected_dump = svntest.actions.run_and_verify_dump(sbox.repo_dir)
    file = sbox.get_tempname()
    svntest.actions.run_and_verify_svnadmin2([], ['* Dumped revision 0.\n', '* Dumped revision 1.\n'], 0, 'dump', '--file', file, sbox.repo_dir)
    actual_dump = open(file, 'rb').readlines()
    svntest.verify.compare_dump_files(None, None, expected_dump, actual_dump)
    file = sbox.get_tempname()
    svntest.main.file_write(file, '')
    svntest.actions.run_and_verify_svnadmin2([], ['* Dumped revision 0.\n', '* Dumped revision 1.\n'], 0, 'dump', '--file', file, sbox.repo_dir)
    actual_dump = open(file, 'rb').readlines()
    svntest.verify.compare_dump_files(None, None, expected_dump, actual_dump)
svnadmin dump --file ARG
def dump_to_file(sbox):
    
    sbox.build(create_wc=False, empty=False)
    expected_dump = svntest.actions.run_and_verify_dump(sbox.repo_dir)
    file = sbox.get_tempname()
    svntest.actions.run_and_verify_svnadmin2([], ['* Dumped revision 0.\n', '* Dumped revision 1.\n'], 0, 'dump', '--file', file, sbox.repo_dir)
    actual_dump = open(file, 'rb').readlines()
    svntest.verify.compare_dump_files(None, None, expected_dump, actual_dump)
    file = sbox.get_tempname()
    svntest.main.file_write(file, )
    svntest.actions.run_and_verify_svnadmin2([], ['* Dumped revision 0.\n', '* Dumped revision 1.\n'], 0, 'dump', '--file', file, sbox.repo_dir)
    actual_dump = open(file, 'rb').readlines()
    svntest.verify.compare_dump_files(None, None, expected_dump, actual_dump)