diff test/test_status.py @ 32:b1235080e694

add more tests for status defaults
author Bernhard Herzog <bh@intevation.de>
date Thu, 15 Mar 2007 11:48:13 +0100
parents f9f15ee39ed7
children 086c68ca51d2
line wrap: on
line diff
--- a/test/test_status.py	Wed Mar 14 21:49:05 2007 +0100
+++ b/test/test_status.py	Thu Mar 15 11:48:13 2007 +0100
@@ -44,9 +44,11 @@
         self.assertRaises(AttributeError,
                           setattr, status, "unknown_field", "some value")
 
-    def test_default_value(self):
+    def test_default_values(self):
         status = Status(self.filename)
+        self.assertEquals(status.status, "unknown")
         self.assertEquals(status.start, None)
+        self.assertEquals(status.stop, None)
 
     def test_date(self):
         timestamp = datetime(2007, 3, 9, 17, 32, 55)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)