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