aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-16 22:39:22 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-16 22:39:22 +0300
commitca518df1ac4c08a8d352871fc9aa207443fc5fab (patch)
tree98fdd07cb7f6491b50d24c649cfa3d9626a86b29 /tests
parent491d967f2e0d6fc62724746a430fe27a9421e639 (diff)
downloadpy-gsxws-ca518df1ac4c08a8d352871fc9aa207443fc5fab.tar.gz
py-gsxws-ca518df1ac4c08a8d352871fc9aa207443fc5fab.tar.bz2
py-gsxws-ca518df1ac4c08a8d352871fc9aa207443fc5fab.zip
Added workaround for IMEI/SN warranty check
To avoid “Please enter either a serial number or an IMEI number but not both." in the updated API
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 bd2d8b0..07a7ca4 100644
--- a/tests/test_gsxws.py
+++ b/tests/test_gsxws.py
@@ -305,9 +305,12 @@ class TestRemoteWarrantyFunctions(RemoteTestCase):
def test_warranty_lookup(self):
self.assertEqual(self.wty.warrantyStatus, 'Out Of Warranty (No Coverage)')
+ def test_warranty_lookup_imei(self):
+ wty = Product(env['GSX_IMEI']).warranty()
+ self.assertEqual(wty.warrantyStatus, 'Out Of Warranty (No Coverage)')
+
def test_fmip_status(self):
- self.assertEqual(self.product.fmip_status,
- 'Find My iPhone is active. Find My iPhone must be turned off for whole unit repairs.')
+ self.assertContains(self.product.fmip_status, 'Find My iPhone is active')
def test_fmip_active(self):
self.assertTrue(self.product.fmip_is_active)