aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2014-10-18 13:01:59 +0300
committerFilipp Lepalaan <filipp@mac.com>2014-10-18 13:01:59 +0300
commitc28f3293c28d27783c92824e8cbe6627b9f303ec (patch)
treee062709e3c210f0eeb619c63c2f107187f183590 /tests
parent4b3253483bfc90c17fa21acf36133dd6c1ddd85e (diff)
downloadpy-gsxws-c28f3293c28d27783c92824e8cbe6627b9f303ec.tar.gz
py-gsxws-c28f3293c28d27783c92824e8cbe6627b9f303ec.tar.bz2
py-gsxws-c28f3293c28d27783c92824e8cbe6627b9f303ec.zip
Raise GsxError on empty request result
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gsxws.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py
index 0363fc9..4192b09 100644
--- a/tests/test_gsxws.py
+++ b/tests/test_gsxws.py
@@ -43,7 +43,7 @@ class DiagnosticsTestCase(RemoteTestCase):
for r in res.diagnosticProfileData.profile.unit.key:
self.assertIsInstance(r.name, unicode)
self.assertUnicodeOrInt(r.value)
-
+
for r in res.diagnosticProfileData.report.reportData.key:
self.assertUnicodeOrInt(r.value)
@@ -92,7 +92,7 @@ class TestTypes(TestCase):
def test_timestamp(self):
self.assertIsInstance(self.data.createTimestamp, datetime)
-
+
def test_ts_comp(self):
self.assertGreater(datetime.now(), self.data.createTimestamp)
@@ -107,7 +107,7 @@ class TestErrorFunctions(TestCase):
self.data = GsxError(xml=xml)
def test_code(self):
- self.assertEqual(self.data.errors['RPR.ONS.025'],
+ self.assertEqual(self.data.errors['RPR.ONS.025'],
'This unit is not eligible for an Onsite repair from GSX.')
def test_message(self):
@@ -228,7 +228,8 @@ class TestRemoteWarrantyFunctions(RemoteTestCase):
self.assertEqual(self.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.assertEqual(self.product.fmip_status,
+ 'Find My iPhone is active. Find My iPhone must be turned off for whole unit repairs.')
def test_fmip_active(self):
self.assertTrue(self.product.fmip_is_active)
@@ -267,7 +268,7 @@ class TestLocalWarrantyFunctions(TestCase):
class TestRepairDiagnostics(RemoteTestCase):
def setUp(self):
- super(TestDiagnostics, self).setUp()
+ super(DiagnosticsTestCase, self).setUp()
self.results = diagnostics.Diagnostics(serialNumber=env['GSX_SN']).fetch()
def test_diag_result(self):
@@ -389,7 +390,7 @@ class TestRepairUpdate(RemoteTestCase):
self.dispatchId = 'G135934345'
self.repair = repairs.CarryInRepair(self.dispatchId)
- def test_set_repair_status(self):
+ def test_set_repair_status(self):
result = self.repair.set_status('BEGR')
self.assertEqual(result.confirmationNumber, self.dispatchId)