From ca518df1ac4c08a8d352871fc9aa207443fc5fab Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 16 Aug 2015 22:39:22 +0300 Subject: Added workaround for IMEI/SN warranty check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To avoid “Please enter either a serial number or an IMEI number but not both." in the updated API --- tests/test_gsxws.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/test_gsxws.py') 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) -- cgit v1.2.3