aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-10-11 14:33:49 +0300
committerFilipp Lepalaan <f@230.to>2013-10-11 14:33:49 +0300
commit8d1c76e9a29a2bdf4a28afbd3945410a8c32bc6c (patch)
tree89427ee9d0205875a0be4c5c620efccc1c9c4dd5 /tests
parentafc39a635a2ee508bad3f4a79096ca66eb96969e (diff)
downloadpy-gsxws-8d1c76e9a29a2bdf4a28afbd3945410a8c32bc6c.tar.gz
py-gsxws-8d1c76e9a29a2bdf4a28afbd3945410a8c32bc6c.tar.bz2
py-gsxws-8d1c76e9a29a2bdf4a28afbd3945410a8c32bc6c.zip
Include data in GsxObject string rep.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gsxws.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py
index bee83b0..af6d3bc 100644
--- a/tests/test_gsxws.py
+++ b/tests/test_gsxws.py
@@ -22,8 +22,11 @@ class RemoteTestCase(TestCase):
class TestCoreFunctions(TestCase):
def test_dump(self):
- r = repairs.Repair(blaa='test')
- self.assertRegexpMatches(str(r), '<root><blaa>test</blaa></root>')
+ rep = repairs.Repair(blaa='test')
+ part = repairs.RepairOrderLine()
+ part.partNumber = '661-5571'
+ rep.orderLines = [part]
+ self.assertRegexpMatches(str(rep), '<root><blaa>test</blaa><orderLines>')
class TestErrorFunctions(TestCase):