def test_campaigns(self):
    self.cl.stub_request(self.cl.client_id % "clients/%s/campaigns.json", "campaigns.json")
    campaigns = self.cl.campaigns()
    self.assertEquals(len(campaigns), 2)
    self.assertEquals(campaigns[0].CampaignID, 'fc0ce7105baeaf97f47c99be31d02a91')
    self.assertEquals(campaigns[0].WebVersionURL, 'http://createsend.com/t/r-765E86829575EE2C')
    self.assertEquals(campaigns[0].WebVersionTextURL, 'http://createsend.com/t/r-765E86829575EE2C/t')
    self.assertEquals(campaigns[0].Subject, 'Campaign One')
    self.assertEquals(campaigns[0].Name, 'Campaign One')
    self.assertEquals(campaigns[0].SentDate, '2010-10-12 12:58:00')
    self.assertEquals(campaigns[0].TotalRecipients, 2245)
    self.assertEquals(campaigns[0].FromName, 'My Name')
    self.assertEquals(campaigns[0].FromEmail, 'myemail@example.com')
    self.assertEquals(campaigns[0].ReplyTo, 'myemail@example.com')
dataset/ETHPy150Open campaignmonitor/createsend-python/test/test_client.py/ClientTestCase.test_campaigns/swapped operands of `%`