changeset 43:3c5ab7a65384

adapt status test cases to the enum fields
author Bernhard Herzog <bh@intevation.de>
date Mon, 19 Mar 2007 20:13:23 +0100
parents f7ec40638a06
children a2ce575ce82b b0a4df526d64
files test/test_status.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_status.py	Thu Mar 15 21:12:23 2007 +0100
+++ b/test/test_status.py	Mon Mar 19 20:13:23 2007 +0100
@@ -30,10 +30,10 @@
 
     def test_status(self):
         status = RevisionStatus(self.filename)
-        status.status = "testing"
+        status.error()
 
         otherstatus = RevisionStatus(self.filename)
-        self.assertEquals(otherstatus.status, "testing")
+        self.assertEquals(otherstatus.status.name, "error")
 
     def test_getting_unknown_fields(self):
         status = RevisionStatus(self.filename)
@@ -46,7 +46,7 @@
 
     def test_default_values(self):
         status = RevisionStatus(self.filename)
-        self.assertEquals(status.status, "unknown")
+        self.assertEquals(status.status.name, "unknown")
         self.assertEquals(status.start, None)
         self.assertEquals(status.stop, None)
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)