Mercurial > treepkg
diff test/test_status.py @ 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 | c544903eeced |
children | 39b2deea8481 |
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)