aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/repairs.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-06-09 12:13:45 +0300
committerFilipp Lepalaan <f@230.to>2013-06-09 12:13:45 +0300
commit1f4ac1d6144dd79606942a742530845658309463 (patch)
tree48e5b6944984fc2a24c145b30265699075af4780 /gsxws/repairs.py
parentf454cc6167cd7d91297d6b24187193888ed719ee (diff)
downloadpy-gsxws-1f4ac1d6144dd79606942a742530845658309463.tar.gz
py-gsxws-1f4ac1d6144dd79606942a742530845658309463.tar.bz2
py-gsxws-1f4ac1d6144dd79606942a742530845658309463.zip
Make previous change pass some tests
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r--gsxws/repairs.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 3461092..ee649d8 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -74,6 +74,9 @@ class Repair(GsxObject):
serial number entry (see KGB serial update).
>>> Repair('G135762375').update_sn(ServicePart('661-4964', oldSerialNumber='W882300FK22YA'))
+ Traceback (most recent call last):
+ ...
+ GsxError: This repair cannot be updated.
"""
self.partInfo = parts
if hasattr(self, "dispatchId"):
@@ -113,7 +116,7 @@ class Repair(GsxObject):
to retrieve more details of the repair.
>>> Repair(repairStatus='Open').lookup() #doctest: +ELLIPSIS
- [<core.GsxObject object at ...
+ {'customerName': 'Lepalaan,Filipp',...
"""
self._namespace = "core:"
return Lookup(**self._data).repairs()
@@ -146,7 +149,7 @@ class Repair(GsxObject):
u'Closed and Completed'
"""
self.repairConfirmationNumbers = self.dispatchId
- status = self._submit("RepairStatusRequest", "RepairStatus", "repairStatus")[0]
+ status = self._submit("RepairStatusRequest", "RepairStatus", "repairStatus")
self.repairStatus = status.repairStatus
self._status = status
return status
@@ -157,7 +160,7 @@ class Repair(GsxObject):
similar to the Repair Lookup API.
>>> Repair('G135773004').details() #doctest: +ELLIPSIS
- <core.GsxObject object at ...
+ {'isACPlusConsumed': 'N', 'configuration': 'IPAD 3RD GEN,WIFI+CELLULAR,16GB,BLACK',...
"""
self._namespace = "core:"
details = self._submit("RepairDetailsRequest", "RepairDetails", "lookupResponseData")