def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() self.list = self.aweber.load_from_url('/accounts/1/lists/303449') self.account = self.aweber.load_from_url('/accounts/1') self.custom_field = self.aweber.load_from_url( '/accounts/1/lists/303449/custom_fields/1')
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() sub_url = '/accounts/1/lists/303449/subscribers/2' self.subscriber = self.aweber.load_from_url(sub_url) self.subscriber.name = 'Gary Oldman' self.subscriber.custom_fields['New Custom Field'] = 'Cookies'
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() subscriber_url = '/accounts/1/lists/303449/subscribers/1' new_list_url = '/accounts/1/lists/505454' self.subscriber = self.aweber.load_from_url(subscriber_url) self.subscriber._diff['name'] = 'Joe Schmoe' self.list = self.aweber.load_from_url(new_list_url) self.move_subscriber()
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() cf_url = '/accounts/1/lists/303449/custom_fields' self.cf = self.aweber.load_from_url(cf_url) self.aweber.adapter.requests = [] self.resp = self.cf.create(name='Wedding Song') self.create_req = self.aweber.adapter.requests[0] self.get_req = self.aweber.adapter.requests[1]
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() url = '/accounts/1/lists/303449/any_collection' self.any_collection = self.aweber.load_from_url(url) self.aweber.adapter.requests = [] self.resp = self.any_collection.create( a_string='Bob', a_dict={'Color': 'blue'}, a_list=['apple']) self.create_req = self.aweber.adapter.requests[0] self.get_req = self.aweber.adapter.requests[1]
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() self.account = self.aweber.load_from_url('/accounts/1')
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() sub_url = '/accounts/1/lists/303449/subscribers/2' self.subscriber = self.aweber.load_from_url(sub_url)
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() self.list_ = self.aweber.load_from_url('/accounts/1/lists/303449')
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() cf_url = '/accounts/1/lists/505454/custom_fields' self.cf = self.aweber.load_from_url(cf_url) self.aweber.adapter.requests = []
def setUp(self): self.aweber = AWeberAPI('1', '2') self.aweber.adapter = MockAdapter() self.lists = self.aweber.load_from_url('/accounts/1/lists') self.aweber.adapter.requests = []
def setUp(self): self.aweber = AWeberAPI(key, secret) self.aweber.adapter = MockAdapter() self.access_token = '1234' self.token_secret = 'abcd'