

def test_create(self):
    client_id = '87y8d7qyw8d7yq8w7ydwqwd'
    c = Campaign()
    c.stub_request(('campaigns/%s.json' % client_id), 'create_campaign.json')
    campaign_id = campaign_id.create(client_id, 'subject', 'name', "g'day", 'good.day@example.com', 'good.day@example.com', 'http://example.com/campaign.html', 'http://example.com/campaign.txt', ['7y12989e82ue98u2e', 'dh9w89q8w98wudwd989'], ['y78q9w8d9w8ud9q8uw', 'djw98quw9duqw98uwd98'])
    self.assertEquals(('"TextUrl": "http://example.com/campaign.txt"' in c.faker.actual_body), True)
    self.assertEquals(c.campaign_id, '787y87y87y87y87y87y8712341234')
    self.assertEquals(campaign_id, '787y87y87y87y87y87y8712341234')

dataset/ETHPy150Open campaignmonitor/createsend-python/test/test_campaign.py CampaignTestCase.test_create/VarMisuse@35/80 `c`->`campaign_id`