diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gsxws.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py index 952c6fc..432ed64 100644 --- a/tests/test_gsxws.py +++ b/tests/test_gsxws.py @@ -8,7 +8,7 @@ from unittest import main, skip, TestCase from gsxws.objectify import parse from gsxws.products import Product -from gsxws import repairs, escalations, lookups, GsxError +from gsxws import repairs, escalations, lookups, GsxError, ServicePart class RemoteTestCase(TestCase): @@ -41,6 +41,15 @@ class TestLookupFunctions(RemoteTestCase): r = l.component_check() self.assertFalse(r.eligibility) + def test_component_check_with_parts(self): + l = lookups.Lookup(serialNumber=env['GSX_SN']) + l.repairStrategy = "CA" + l.shipTo = env['GSX_SHIPTO'] + part = ServicePart('661-5502') + part.symptomCode = 'H06' + r = l.component_check([part]) + self.assertFalse(r.eligibility) + class TestEscalationFunctions(RemoteTestCase): @skip("Skip") |