def testGet(self): loader = Campaign(CampaignTest.conn) campaigns = loader.find() for campaign in campaigns: assert campaign.get('name') is not None
def testGet(self): loader = Campaign(CampaignTest.conn) campaigns = json.loads(loader.find()) for campaign in campaigns.get('data').get('response').get('campaigns'): assert campaign.get('name') is not None