Rename iter_history of ICapBill to iter_bills_history

This commit is contained in:
Florent 2012-10-31 11:30:46 +01:00
commit 5809f1112a
6 changed files with 6 additions and 6 deletions

View file

@ -62,7 +62,7 @@ class FreeMobileBackend(BaseBackend, ICapBill):
else:
raise SubscriptionNotFound()
def iter_history(self, subscription):
def iter_bills_history(self, subscription):
if not isinstance(subscription, Subscription):
subscription = self.get_subscription(subscription)

View file

@ -63,7 +63,7 @@ class LeclercMobileBackend(BaseBackend, ICapBill):
else:
raise SubscriptionNotFound()
def iter_history(self, subscription):
def iter_bills_history(self, subscription):
with self.browser:
for history in self.browser.get_history():
yield history

View file

@ -29,6 +29,6 @@ class LeclercMobileTest(BackendTest):
def test_leclercmobile(self):
for subscription in self.backend.iter_subscription():
list(self.backend.iter_history(subscription.id))
list(self.backend.iter_bills_history(subscription.id))
for bill in self.backend.iter_bills(subscription.id):
self.backend.download_bill(bill.id)

View file

@ -63,7 +63,7 @@ class NettoKomBackend(BaseBackend, ICapBill):
else:
raise SubscriptionNotFound()
def iter_history(self, subscription):
def iter_bills_history(self, subscription):
with self.browser:
for history in self.browser.get_history():
yield history

View file

@ -133,7 +133,7 @@ class Boobill(ReplApplication):
Get the history of subscriptions.
If no ID given, display histories of all backends
"""
self.exec_method(id, 'iter_history')
self.exec_method(id, 'iter_bills_history')
def do_bills(self, id):
"""

View file

@ -99,7 +99,7 @@ class ICapBill(ICapCollection):
"""
raise NotImplementedError()
def iter_history(self, subscription):
def iter_bills_history(self, subscription):
"""
Iter history of a subscription.