changeset 46:b0a4df526d64

merge
author Bernhard Herzog <bh@intevation.de>
date Mon, 02 Apr 2007 19:12:20 +0200
parents bad59cd04f34 (current diff) 3c5ab7a65384 (diff)
children 38d66dc6a1e5
files
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_status.py	Mon Mar 19 17:19:59 2007 +0100
+++ b/test/test_status.py	Mon Apr 02 19:12:20 2007 +0200
@@ -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)