summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/statisticstest.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-06-27 20:21:55 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-06-27 20:21:55 +0000
commit0f383c16278f6ef0959a6d3aa7fcf21cd2c4c730 (patch)
tree0a7be2bcb19d1a305cb3a6ec1117eccd1b9c8dff /rdiff-backup/testing/statisticstest.py
parent46cedd177d04372e1de7f67759a95c0d19d74ec3 (diff)
downloadrdiff-backup-0f383c16278f6ef0959a6d3aa7fcf21cd2c4c730.tar.gz
Adapted a few tests to go with other code.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@150 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/statisticstest.py')
-rw-r--r--rdiff-backup/testing/statisticstest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rdiff-backup/testing/statisticstest.py b/rdiff-backup/testing/statisticstest.py
index 032badc..819bb85 100644
--- a/rdiff-backup/testing/statisticstest.py
+++ b/rdiff-backup/testing/statisticstest.py
@@ -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()