aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2014-08-16 14:20:54 +0300
committerFilipp Lepalaan <filipp@mac.com>2014-08-16 14:20:54 +0300
commit09ef2e20882af372ccdc71923c9f15a8f16f8443 (patch)
tree7458dcf38d50ca62fd04fbd4a730a20859a8f226 /tests/test_gsxws.py
parent4205a0bc86af65fc4554de01cfcd21ed5b2b4c01 (diff)
downloadpy-gsxws-09ef2e20882af372ccdc71923c9f15a8f16f8443.tar.gz
py-gsxws-09ef2e20882af372ccdc71923c9f15a8f16f8443.tar.bz2
py-gsxws-09ef2e20882af372ccdc71923c9f15a8f16f8443.zip
Added ShipTo argument to warranty check
Diffstat (limited to 'tests/test_gsxws.py')
-rw-r--r--tests/test_gsxws.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py
index 8f11633..1de1906 100644
--- a/tests/test_gsxws.py
+++ b/tests/test_gsxws.py
@@ -181,7 +181,14 @@ class TestPartFunction(RemoteTestCase):
self.assertIsInstance(parts[0].partNumber, basestring)
-class TestWarrantyFunctions(TestCase):
+class TestRemoteWarrantyFunctions(RemoteTestCase):
+ def test_warranty_lookup(self):
+ product = Product('DGKFL06JDHJP')
+ wty = product.warranty(ship_to=env['GSX_SHIPTO'])
+ self.assertEqual(wty.warrantyStatus, 'Out Of Warranty (No Coverage)')
+
+
+class TestLocalWarrantyFunctions(TestCase):
def setUp(self):
self.data = parse('tests/fixtures/warranty_status.xml',
'warrantyDetailInfo')