diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-05-10 23:14:57 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-05-10 23:14:57 +0000 |
commit | 40fd4661d4b2a0fd2b2517408d4c5982474b2105 (patch) | |
tree | 6ab957325a74ddf7c64aebdb7424501ca7fc8a45 /rdiff-backup/testing/timetest.py | |
parent | 807241bc4f322edc6f95782291900362484263df (diff) | |
download | rdiff-backup-40fd4661d4b2a0fd2b2517408d4c5982474b2105.tar.gz |
Many changes, see changelog for 0.7.4
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@73 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/timetest.py')
-rw-r--r-- | rdiff-backup/testing/timetest.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rdiff-backup/testing/timetest.py b/rdiff-backup/testing/timetest.py index 78c7f97..d56f420 100644 --- a/rdiff-backup/testing/timetest.py +++ b/rdiff-backup/testing/timetest.py @@ -90,5 +90,14 @@ class TimeTest(unittest.TestCase): assert g2t('2001-05-12') == t assert g2t('2001/05/12') == t assert g2t('5/12/2001') == t + assert g2t('123456') == 123456 + + def testGenericStringErrors(self): + """Test genstrtotime on some bad strings""" + g2t = Time.genstrtotime + self.assertRaises(TimeException, g2t, "hello") + self.assertRaises(TimeException, g2t, "") + self.assertRaises(TimeException, g2t, "3q") + if __name__ == '__main__': unittest.main() |