diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-16 22:39:22 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-16 22:39:22 +0300 |
commit | ca518df1ac4c08a8d352871fc9aa207443fc5fab (patch) | |
tree | 98fdd07cb7f6491b50d24c649cfa3d9626a86b29 /tests | |
parent | 491d967f2e0d6fc62724746a430fe27a9421e639 (diff) | |
download | py-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.py | 7 |
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) |