aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-09-02 16:11:41 +0300
committerFilipp Lepalaan <f@230.to>2013-09-02 16:11:41 +0300
commitd3fc9cb6dfc89ea118038a5868b99e459cab911b (patch)
tree8584b43fc347c13438a07c6498d93e70e83a3c37 /tests/test_gsxws.py
parent75f0087e4fae39f21d0e362ecc7f8756cc0a828e (diff)
downloadpy-gsxws-d3fc9cb6dfc89ea118038a5868b99e459cab911b.tar.gz
py-gsxws-d3fc9cb6dfc89ea118038a5868b99e459cab911b.tar.bz2
py-gsxws-d3fc9cb6dfc89ea118038a5868b99e459cab911b.zip
Match product line names with those returned by GSX
Diffstat (limited to 'tests/test_gsxws.py')
-rw-r--r--tests/test_gsxws.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py
index 2596f52..ee1d943 100644
--- a/tests/test_gsxws.py
+++ b/tests/test_gsxws.py
@@ -10,6 +10,7 @@ from gsxws import repairs, escalations
class TestEscalationFunctions(TestCase):
+ @skip("Skip")
def setUp(self):
from gsxws.core import connect
logging.basicConfig(level=logging.DEBUG)
@@ -150,5 +151,17 @@ class TestOnsiteDispatchDetail(TestCase):
self.assertIsInstance(self.data.dispatchOrderLines.isSerialized, bool)
+class TestCarryinRepairDetail(TestCase):
+ def setUp(self):
+ self.data = parse('tests/fixtures/repair_details_ca.xml',
+ 'lookupResponseData')
+
+ def test_details(self):
+ self.assertEqual(self.data.dispatchId, 'G2093174681')
+
+ def test_unicode_name(self):
+ self.assertEqual(self.data.primaryAddress.firstName, u'Ääkköset')
+
+
if __name__ == '__main__':
main()