def test_opens(self):
    min_date = "2010-01-01"
    self.campaign.stub_request("campaigns/%s/opens.json?date=%s&orderfield=date&page=1&pagesize=1000&orderdirection=asc" + (self.campaign_id, urllib.quote(min_date, '')), "campaign_opens.json")
    opens = self.campaign.opens(min_date)
    self.assertEquals(len(opens.Results), 5)
    self.assertEquals(opens.Results[0].EmailAddress, "subs+6576576576@example.com")
    self.assertEquals(opens.Results[0].ListID, "512a3bc577a58fdf689c654329b50fa0")
    self.assertEquals(opens.Results[0].Date, "2010-10-11 08:29:00")
    self.assertEquals(opens.Results[0].IPAddress, "192.168.126.87")
    self.assertEquals(opens.Results[0].Latitude, -33.8683)
    self.assertEquals(opens.Results[0].Longitude, 151.2086)
    self.assertEquals(opens.Results[0].City, "Sydney")
    self.assertEquals(opens.Results[0].Region, "New South Wales")
    self.assertEquals(opens.Results[0].CountryCode, "AU")
    self.assertEquals(opens.Results[0].CountryName, "Australia")
    self.assertEquals(opens.ResultsOrderedBy, "date")
    self.assertEquals(opens.OrderDirection, "asc")
    self.assertEquals(opens.PageNumber, 1)
    self.assertEquals(opens.PageSize, 1000)
    self.assertEquals(opens.RecordsOnThisPage, 5)
    self.assertEquals(opens.TotalNumberOfRecords, 5)
    self.assertEquals(opens.NumberOfPages, 1)
dataset/ETHPy150Open campaignmonitor/createsend-python/test/test_campaign.py/CampaignTestCase.test_opens/operator `%` -> `+`