Skip to content

Commit cf7904b

Browse files
committed
yet another few small test fixes
1 parent 51dd224 commit cf7904b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎stream/tests.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ def test_uniqueness_foreign_id(self):
191191
response = self.user1.add_activity(activity_data)
192192
activities = self.user1.get(limit=2)['results']
193193
# the second post should have overwritten the first one (because they had same id)
194-
self.assertEqual(activities[0]['object'], 3)
194+
self.assertEqual(activities[0]['object'], '3')
195195
self.assertEqual(activities[0]['foreign_id'], 'tweet:11')
196-
self.assertEqual(activities[0]['time'], now)
196+
self.assertEqual(activities[0]['time'], datetime.datetime.utcnow())
197197

198198
def test_missing_actor(self):
199199
activity_data = {'verb': 'tweet', 'object':

0 commit comments

Comments
 (0)