Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_create_without_unsubscribe_setting(self):
l = List()
l.stub_request("lists/%s.json" % self.client_id, "create_list.json")
list_id = l.create(self.client_id, "List One", "", False, "")
self.assertEquals(list_id, "e3c5f034d68744f7881fdccf13c2daee1234")
self.assertEquals(l.list_id, "e3c5f034d68744f7881fdccf13c2daee1234")
def setUp(self):
self.client_id = "87y8d7qyw8d7yq8w7ydwqwd"
self.list_id = "e3c5f034d68744f7881fdccf13c2daee"
self.list = List({'api_key': '123123123123123123123'}, self.list_id)
def test_create_with_unsubscribe_setting(self):
l = List()
l.stub_request("lists/%s.json" % self.client_id, "create_list.json")
list_id = l.create(self.client_id, "List One",
"", False, "", "OnlyThisList")
self.assertEquals(list_id, "e3c5f034d68744f7881fdccf13c2daee1234")
self.assertEquals(l.list_id, "e3c5f034d68744f7881fdccf13c2daee1234")