enhancements

This commit is contained in:
Romain Bignon 2010-08-14 00:21:48 +02:00
commit 87f3e1e765
3 changed files with 5 additions and 5 deletions

View file

@ -25,5 +25,5 @@ class BNPorcTest(BackendTest):
l = [a for a in self.backend.iter_accounts()]
if len(l) > 0:
a = l[0]
o = self.backend.iter_operations(a)
h = self.backend.iter_history(a)
self.backend.iter_operations(a)
self.backend.iter_history(a)

View file

@ -23,4 +23,4 @@ class GazelleTest(BackendTest):
def test_torrent(self):
l = [torrent for torrent in self.backend.iter_torrents('sex')]
if len(l) > 0:
f = self.backend.get_torrent_file(l[0].id)
self.backend.get_torrent_file(l[0].id)

View file

@ -53,7 +53,7 @@ class Station(CapBaseObject):
self.name = name
def __repr__(self):
return "<Station id='%s' name='%s'>" % (self.id, self.name)
return "<Station id=%r name=%r>" % (self.id, self.name)
class Departure(CapBaseObject):
@ -71,5 +71,5 @@ class Departure(CapBaseObject):
self.plateform = u''
def __repr__(self):
return "<Departure id='%s' type='%s' time='%s' departure='%s' arrival='%s'>" % (
return u"<Departure id=%r type=%r time=%r departure=%r arrival=%r>" % (
self.id, self.type, self.time.strftime('%H:%M'), self.departure_station, self.arrival_station)