diff options
-rw-r--r-- | gsxws/escalations.py | 4 | ||||
-rw-r--r-- | tests/test_gsxws.py | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gsxws/escalations.py b/gsxws/escalations.py index da26730..20bf1d7 100644 --- a/gsxws/escalations.py +++ b/gsxws/escalations.py @@ -82,3 +82,7 @@ class Escalation(GsxObject): of a general escalation created by AASP or a carrier. """ return Lookup(escalationId=self.escalationId).lookup("GeneralEscalationDetailsLookup") + + def get_notes(self): + return self.objects.escalationNotes.iterchildren() + diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py index 5571c22..57b83ab 100644 --- a/tests/test_gsxws.py +++ b/tests/test_gsxws.py @@ -44,7 +44,8 @@ class TestTypes(TestCase): self.assertGreater(datetime.now(), self.data.createTimestamp) def test_list(self): - self.assertIsInstance(self.data.escalationNotes, list) + for x in self.data.escalationNotes.iterchildren(): + self.assertIsInstance(x.text, str) class TestErrorFunctions(TestCase): |