diff --git a/tests/request_fixtures/test_read_request1.xml b/tests/request_fixtures/test_read_request1.xml index af699507..a2bc0447 100644 --- a/tests/request_fixtures/test_read_request1.xml +++ b/tests/request_fixtures/test_read_request1.xml @@ -1,4 +1,4 @@ - + diff --git a/tests/request_fixtures/test_read_request2.xml b/tests/request_fixtures/test_read_request2.xml index 2916955e..16033791 100644 --- a/tests/request_fixtures/test_read_request2.xml +++ b/tests/request_fixtures/test_read_request2.xml @@ -1,4 +1,4 @@ - + diff --git a/tests/request_fixtures/test_request_list_view1.xml b/tests/request_fixtures/test_request_list_view1.xml index a0117b2e..b9760bbb 100644 --- a/tests/request_fixtures/test_request_list_view1.xml +++ b/tests/request_fixtures/test_request_list_view1.xml @@ -1,4 +1,4 @@ - + diff --git a/tests/request_fixtures/test_request_list_view2.xml b/tests/request_fixtures/test_request_list_view2.xml index ae9213aa..28e745be 100644 --- a/tests/request_fixtures/test_request_list_view2.xml +++ b/tests/request_fixtures/test_request_list_view2.xml @@ -1,4 +1,4 @@ - + diff --git a/tests/request_fixtures/test_request_str1.xml b/tests/request_fixtures/test_request_str1.xml index ee5aa9bf..96a41ce6 100644 --- a/tests/request_fixtures/test_request_str1.xml +++ b/tests/request_fixtures/test_request_str1.xml @@ -1,4 +1,4 @@ - + diff --git a/tests/test_request.py b/tests/test_request.py index d7cdd5a8..5746cea0 100644 --- a/tests/test_request.py +++ b/tests/test_request.py @@ -384,7 +384,7 @@ class TestRequest(OscTestCase): self.assertEqual(r.statehistory[0].when, '2010-12-11T00:00:00') self.assertEqual(r.statehistory[0].who, 'creator') self.assertEqual(r.statehistory[0].comment, '') - self.assertEqual(r.get_creator(), 'creator') + self.assertEqual(r.creator, 'creator') self.assertTrue(len(r.statehistory) == 1) self.assertTrue(len(r.reviews) == 1) self.assertEqual(xml, r.to_str()) @@ -392,7 +392,7 @@ class TestRequest(OscTestCase): def test_read_request3(self): """read in a request (with an "empty" comment+description)""" from xml.etree import cElementTree as ET - xml = """ + xml = """ @@ -415,8 +415,8 @@ class TestRequest(OscTestCase): self.assertEqual(r.description, '') self.assertTrue(len(r.statehistory) == 0) self.assertTrue(len(r.reviews) == 0) - self.assertEqual(r.get_creator(), 'xyz') - exp = """ + self.assertEqual(r.creator, 'xyz') + exp = """ @@ -466,7 +466,7 @@ class TestRequest(OscTestCase): r = osc.core.Request() r = osc.core.Request() r.read(ET.fromstring(xml)) - self.assertEqual(r.get_creator(), 'creator') + self.assertEqual(r.creator, 'creator') exp = """\ Request: #123 @@ -496,7 +496,7 @@ History: 2010-12-12T00:00:00 creator revoked """test the __str__ method""" from xml.etree import cElementTree as ET xml = """\ - + @@ -508,7 +508,7 @@ History: 2010-12-12T00:00:00 creator revoked """ r = osc.core.Request() r.read(ET.fromstring(xml)) - self.assertEqual(r.get_creator(), 'creator') + self.assertEqual(r.creator, 'creator') exp = """\ Request: #98765 @@ -527,7 +527,7 @@ Comment: """ """load old-style submitrequest""" from xml.etree import cElementTree as ET xml = """\ - + @@ -548,9 +548,9 @@ Comment: """ self.assertEqual(r.state.when, '2010-12-30T02:11:22') self.assertEqual(r.state.who, 'olduser') self.assertEqual(r.state.comment, '') - self.assertEqual(r.get_creator(), 'olduser') + self.assertEqual(r.creator, 'olduser') exp = """\ - +