def test_get_history(self):
responses.add(
responses.POST,
urljoin(
EMARSYS_URI,
'{}/{}/'.format(CONTACT_ENDPOINT, 'getcontacthistory')
),
json=EMARSYS_CONTACTS_GET_CONTACT_HISTORY_RESPONSE,
status=200,
content_type='application/json'
)
connection = SyncConnection(TEST_USERNAME, TEST_SECRET)
contacts = Contact(connection)
response = contacts.get_history(
[723005829]
)
assert response == EMARSYS_CONTACTS_GET_CONTACT_HISTORY_RESPONSE
评论列表
文章目录