Skip to content
Browse files

Pythonized getOrder() to get_order()

  • Loading branch information...
1 parent 7767080 commit 868bfbe9e963cf0f63c65d25cebbb55a2380019a @chrisglass committed Feb 11, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 shop/backend_base.py
  2. +1 −1 shop/tests/payment.py
  3. +1 −1 shop/tests/shipping.py
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

0 comments on commit 868bfbe

Please sign in to comment.
Something went wrong with that request. Please try again.