def test_get_customers_by_value_segment_with_wrong_date(self):
responses.add_callback(
responses.POST,
'https://api.optimove.net/v3.0/general/login',
callback=login_callback,
content_type='application/json'
)
responses.add_callback(
responses.GET,
'https://api.optimove.net/v3.0/segments/GetCustomersByValueSegment',
callback=get_customers_by_value_segment_callback,
content_type='application/json'
)
client = Client('username', 'password')
data = client.segments.get_customers_by_value_segment(3, '3015-05-10')
self.assertFalse(data)
评论列表
文章目录