enhancements
This commit is contained in:
parent
8767ff2bf0
commit
87f3e1e765
3 changed files with 5 additions and 5 deletions
|
|
@ -25,5 +25,5 @@ class BNPorcTest(BackendTest):
|
||||||
l = [a for a in self.backend.iter_accounts()]
|
l = [a for a in self.backend.iter_accounts()]
|
||||||
if len(l) > 0:
|
if len(l) > 0:
|
||||||
a = l[0]
|
a = l[0]
|
||||||
o = self.backend.iter_operations(a)
|
self.backend.iter_operations(a)
|
||||||
h = self.backend.iter_history(a)
|
self.backend.iter_history(a)
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,4 @@ class GazelleTest(BackendTest):
|
||||||
def test_torrent(self):
|
def test_torrent(self):
|
||||||
l = [torrent for torrent in self.backend.iter_torrents('sex')]
|
l = [torrent for torrent in self.backend.iter_torrents('sex')]
|
||||||
if len(l) > 0:
|
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
|
self.name = name
|
||||||
|
|
||||||
def __repr__(self):
|
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):
|
class Departure(CapBaseObject):
|
||||||
|
|
@ -71,5 +71,5 @@ class Departure(CapBaseObject):
|
||||||
self.plateform = u''
|
self.plateform = u''
|
||||||
|
|
||||||
def __repr__(self):
|
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)
|
self.id, self.type, self.time.strftime('%H:%M'), self.departure_station, self.arrival_station)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue