Commit 477f4fa0 authored by ben's avatar ben

Adapted a few tests to go with other code.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@150 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent be00fc7d
......@@ -19,6 +19,11 @@ class RemoteMirrorTest(unittest.TestCase):
MirrorTest(1, None, ['testfiles/increment1', 'testfiles/increment2',
'testfiles/increment3', 'testfiles/increment4'])
def testMirror3(self):
"""Local version of testMirror2"""
MirrorTest(1, 1, ['testfiles/increment1', 'testfiles/increment2',
'testfiles/increment3', 'testfiles/increment4'])
def testMirrorWithCheckpointing(self):
"""Like testMirror but this time checkpoint"""
MirrorTest(None, None, ["testfiles/increment1"], 1)
......
......@@ -82,6 +82,7 @@ class RdiffTest(unittest.TestCase):
def testWriteDelta(self):
"""Test write delta feature of rdiff"""
self.delta.delete()
rplist = [self.basis, self.new, self.delta, self.output]
MakeRandomFile(self.basis.path)
MakeRandomFile(self.new.path)
......
......@@ -70,6 +70,10 @@ IncrementFileSize 10 (10 bytes)
statline = s.get_stats_line(())
assert statline == ". 1 2 13 14 3 4 5 6 7 8 9 15 10"
statline = s.get_stats_line(("file name with spaces",))
assert statline == "file\\x20name\\x20with\\x20spaces 1 2 13 14 " \
"3 4 5 6 7 8 9 15 10", repr(statline)
def test_byte_summary(self):
"""Test conversion of bytes to strings like 7.23MB"""
s = StatsObj()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment