Skip to content

Commit 7b2b40b

Browse files
committed
no clue why this fails
1 parent 217e40a commit 7b2b40b

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

stream/tests.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,14 @@ def test_api_key_exception(self):
148148
self.assertRaises(ApiKeyException, lambda:
149149
self.user1.add_activity(activity_data))
150150

151-
def test_missing_field_exception(self):
152-
activity_data = {'actor': 1, 'verb': 'tweet',
153-
'object': 1, 'debug_example_undefined': 'test'}
154-
self.assertRaises(CustomFieldException, lambda:
155-
self.user1.add_activity(activity_data))
156-
151+
def test_complex_field(self):
152+
activity_data = {'actor': 1, 'verb': 'tweet', 'object': 1, 'participants': ['Tommaso', 'Thierry']}
153+
response = self.user1.add_activity(activity_data)
154+
activity_id = response['id']
155+
activities = self.user1.get(limit=1)['results']
156+
self.assertEqual(activities[0]['id'], activity_id)
157+
self.assertEqual(activities[0]['participants'], ['Tommaso', 'Thierry'])
158+
157159
def test_missing_actor(self):
158160
activity_data = {'verb': 'tweet', 'object':
159161
1, 'debug_example_undefined': 'test'}

0 commit comments

Comments
 (0)