Commit 87f3e1e7 authored by Romain Bignon's avatar Romain Bignon

enhancements

parent 8767ff2b
......@@ -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)
......@@ -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)
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment