|
18 | 18 | from nose.tools import eq_ |
19 | 19 | from nose.tools import ok_ |
20 | 20 | from nose.tools import istest |
21 | | -from tests.unit import a_test_user |
| 21 | +from tests.unit import get_user |
22 | 22 |
|
23 | 23 |
|
24 | 24 | get = httpretty.GET |
@@ -61,7 +61,7 @@ def it_throws_an_attribute_error_on_trying_to_access_an_attribute_that_has_not_b |
61 | 61 |
|
62 | 62 | @istest |
63 | 63 | def it_presents_a_complete_user_record_correctly(self): |
64 | | - user = User.from_api(a_test_user()) |
| 64 | + user = User.from_api(get_user()) |
65 | 65 | eq_('id-from-customers-app', user.user_id) |
66 | 66 | eq_('bob@example.com', user.email) |
67 | 67 | eq_('Joe Schmoe', user.name) |
@@ -165,14 +165,14 @@ def it_rejects_nested_data_structures_in_custom_attributes(self): |
165 | 165 | with assert_raises(ValueError): |
166 | 166 | user.custom_attributes = {1: {2: 3}} |
167 | 167 |
|
168 | | - user = User.from_api(a_test_user()) |
| 168 | + user = User.from_api(get_user()) |
169 | 169 | with assert_raises(ValueError): |
170 | 170 | user.custom_attributes["thing"] = [1] |
171 | 171 |
|
172 | 172 | @istest |
173 | 173 | @httpretty.activate |
174 | 174 | def it_fetches_a_user(self): |
175 | | - body = json.dumps(a_test_user()) |
| 175 | + body = json.dumps(get_user()) |
176 | 176 |
|
177 | 177 | httpretty.register_uri( |
178 | 178 | get, r(r"https://api.intercom.io/users\?email="), |
|
0 commit comments