Exemplo n.º 1
0
 def testGetById(self):
     publisher_id = 169322
     loader = Publisher(PublisherTest.conn)
     publisher = loader.find(publisher_id)
     assert publisher_id == publisher.get('id')
Exemplo n.º 2
0
 def testGet(self):
     loader = Publisher(PublisherTest.conn)
     publishers = loader.find()
     for publisher in publishers:
         assert publisher.get('id') is not None