def test_segments(self):
    self.cl.stub_request(self.cl.client_id % "clients/%s/segments.json", "segments.json")
    segments = self.cl.segments()
    self.assertEquals(len(segments), 2)
    self.assertEquals(segments[0].ListID, 'a58ee1d3039b8bec838e6d1482a8a965')
    self.assertEquals(segments[0].SegmentID, '46aa5e01fd43381863d4e42cf277d3a9')
    self.assertEquals(segments[0].Title, 'Segment One')
dataset/ETHPy150Open campaignmonitor/createsend-python/test/test_client.py/ClientTestCase.test_segments/swapped operands of `%`