diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-02-11 07:37:12 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-02-11 07:37:12 +0000 |
commit | 9613406fbab1949f66fe7858590cab990c7b4b25 (patch) | |
tree | 573a6106da5bb7ead2c4f17c45be664063d67e01 /rdiff-backup/testing/timetest.py | |
parent | e18d568c6fdfa1a73fea01362d5bdf31aaa0d5b5 (diff) | |
download | rdiff-backup-9613406fbab1949f66fe7858590cab990c7b4b25.tar.gz |
First pass at integrating regress code
At this point most of the tests work, but there are still problems
with the finaltest error tests on /proc, and with some selection
options. The regress code is totally unchecked, and regresstest.py is
unwritten.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@277 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/timetest.py')
-rw-r--r-- | rdiff-backup/testing/timetest.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/rdiff-backup/testing/timetest.py b/rdiff-backup/testing/timetest.py index 367a4f9..f7c28e1 100644 --- a/rdiff-backup/testing/timetest.py +++ b/rdiff-backup/testing/timetest.py @@ -32,20 +32,6 @@ class TimeTest(unittest.TestCase): assert cmp("2001-09-01T12:00:00-08:00", "2001-09-01T12:00:00-07:00") == 1 - def testCmp_separator(self): - """Like testCmp but with new separator""" - Globals.time_separator = "_" - cmp = Time.cmp - assert cmp(1,2) == -1 - assert cmp(2,2) == 0 - assert cmp(5,1) == 1 - assert cmp("2001-09-01T21_49_04Z", "2001-08-01T21_49_04Z") == 1 - assert cmp("2001-09-01T04_49_04+03_23", "2001-09-01T21_49_04Z") == -1 - assert cmp("2001-09-01T12_00_00Z", "2001-09-01T04_00_00-08_00") == 0 - assert cmp("2001-09-01T12_00_00-08_00", - "2001-09-01T12_00_00-07_00") == 1 - Globals.time_separator = ":" - def testStringtotime(self): """Test converting string to time""" timesec = int(time.time()) |