Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pythonized getOrder() to get_order()

  • Loading branch information...
commit 868bfbe9e963cf0f63c65d25cebbb55a2380019a 1 parent 7767080
@chrisglass authored
View
2  shop/backend_base.py
@@ -20,7 +20,7 @@ class BaseBackendAPI(object):
them in BaseShippingBackend and BasePaymentBackend, future implementers
thank you :)
'''
- def getOrder(self, request):
+ def get_order(self, request):
'''
Returns the order object for the current shopper.
View
2  shop/tests/payment.py
@@ -72,7 +72,7 @@ class MockRequest():
user = self.user
be = MockBackend()
- order = be.shop.getOrder(MockRequest())
+ order = be.shop.get_order(MockRequest())
self.assertNotEqual(order, None)
self.assertEqual(len(order), 0) # Should basically be an empty list
View
2  shop/tests/shipping.py
@@ -58,7 +58,7 @@ class MockRequest():
user = self.user
be = MockBackend()
- order = be.shop.getOrder(MockRequest())
+ order = be.shop.get_order(MockRequest())
self.assertNotEqual(order, None)
self.assertEqual(len(order), 0) # Should basically be an empty list
Please sign in to comment.
Something went wrong with that request. Please try again.