def test_lists_for_email(self):
    email = "valid@example.com"
    self.cl.stub_request("clients/%s/listsforemail.json?email=%s" % (self.cl.client_id, urllib.quote(email)), "listsforemail.json")
    lists = self.cl.lists_for_email(email)
    self.assertEquals(len(lists), 2)
    self.assertEquals(lists[0].ListID, 'ab4a2b57c7c8f1ba62f898a1af1a575b')
    self.assertEquals(lists[0].ListName, 'List Number One')
    self.assertEquals(lists[0].SubscriberState, 'Active')
    self.assertEquals(lists[0].DateSubscriberAdded, '2012-08-20 22:32:00')
dataset/ETHPy150Open campaignmonitor/createsend-python/test/test_client.py/ClientTestCase.test_lists_for_email/original