예제 #1
0
 def testGetByOrganization(self):
     adv = Advertiser(AdvertiserTest.conn)
     organization_id = "11357"
     advs = adv.find_by_organization(organization_id)
     for result in advs:
         assert result.getId() > 0
         assert result.getName() is not None
예제 #2
0
 def testGetByOrganization(self):
     adv = Advertiser(AdvertiserTest.conn)
     organization_id = '11357'
     advs = adv.find_by_organization(organization_id)
     for result in advs:
         assert result.getId() > 0
         assert result.getName() is not None
예제 #3
0
 def testGetById(self):
     loader = Advertiser(AdvertiserTest.conn)
     organization_id = 11357
     advertiser_id = 25270
     adv = loader.find_by_id(organization_id, advertiser_id)
     assert adv.getId() == advertiser_id
예제 #4
0
 def testGetByOrganization(self):
     adv = Advertiser(AdvertiserTest.conn)
     organization_id = '11357'
     advs = adv.find_by_organization(organization_id)
     for result in advs:
         print result
예제 #5
0
 def testGetById(self):
     loader = Advertiser(AdvertiserTest.conn)
     organization_id = 11357
     advertiser_id = 25270
     adv = loader.find_by_id(organization_id, advertiser_id)
     assert adv.getId() == advertiser_id