@@ -571,15 +571,19 @@ def test_get(self):
571571 def test_mark_read (self ):
572572 notification_feed = getfeed ('notification' , 'py3' )
573573 activity_data = {'actor' : 1 , 'verb' : 'tweet' , 'object' : 1 }
574- notification_feed .add_activity (activity_data )
574+ print ( notification_feed .add_activity (activity_data )[ 'id' ] )
575575 activity_data = {'actor' : 2 , 'verb' : 'add' , 'object' : 2 }
576- notification_feed .add_activity (activity_data )
576+ print ( notification_feed .add_activity (activity_data )[ 'id' ] )
577577 activity_data = {'actor' : 3 , 'verb' : 'watch' , 'object' : 2 }
578- notification_feed .add_activity (activity_data )
578+ print ( notification_feed .add_activity (activity_data )[ 'id' ] )
579579
580580
581581 activities = notification_feed .get (limit = 3 )['results' ]
582+ from pprint import pprint
583+ print (len (activities ))
584+ pprint (activities )
582585 for activity in activities :
586+ pprint (activity )
583587 self .assertFalse (activity ['is_read' ])
584588 activities = notification_feed .get (mark_read = True )['results' ]
585589 activities = notification_feed .get (limit = 2 )['results' ]
@@ -588,13 +592,17 @@ def test_mark_read(self):
588592
589593 def test_get_not_marked_seen (self ):
590594 notification_feed = getfeed ('notification' , 'test_mark_seen' )
591- notification_feed .add_activity ({'actor' : 1 , 'verb' : 'tweet' , 'object' : 1 })
592- notification_feed .add_activity ({'actor' : 2 , 'verb' : 'add ' , 'object' : 2 })
593- notification_feed .add_activity ({'actor' : 3 , 'verb' : 'watch ' , 'object' : 3 })
595+ print ( notification_feed .add_activity ({'actor' : 1 , 'verb' : 'tweet' , 'object' : 1 })[ 'id' ] )
596+ print ( notification_feed .add_activity ({'actor' : 2 , 'verb' : 'tweet ' , 'object' : 2 })[ 'id' ] )
597+ print ( notification_feed .add_activity ({'actor' : 3 , 'verb' : 'tweet ' , 'object' : 3 })[ 'id' ] )
594598
595599
596600 activities = notification_feed .get (limit = 3 )['results' ]
601+ from pprint import pprint
602+ print (len (activities ))
603+ pprint (activities )
597604 for activity in activities :
605+ pprint (activity )
598606 self .assertFalse (activity ['is_seen' ])
599607
600608 def test_mark_seen_on_get (self ):
@@ -632,14 +640,18 @@ def test_mark_seen_on_get(self):
632640
633641 def test_mark_read_by_id (self ):
634642 notification_feed = getfeed ('notification' , 'py2' )
635- notification_feed .add_activity ({'actor' : 1 , 'verb' : 'tweet' , 'object' : 1 }) # ['id']
636- notification_feed .add_activity ({'actor' : 2 , 'verb' : 'add ' , 'object' : 2 }) # ['id']
637- notification_feed .add_activity ({'actor' : 3 , 'verb' : 'watch ' , 'object' : 2 }) # ['id']
643+ print ( notification_feed .add_activity ({'actor' : 1 , 'verb' : 'tweet' , 'object' : 1 })[ 'id' ] ) # ['id']
644+ print ( notification_feed .add_activity ({'actor' : 2 , 'verb' : 'tweet ' , 'object' : 2 })[ 'id' ] ) # ['id']
645+ print ( notification_feed .add_activity ({'actor' : 3 , 'verb' : 'tweet ' , 'object' : 2 })[ 'id' ] ) # ['id']
638646
639647
640648 activities = notification_feed .get (limit = 3 )['results' ]
641649 ids = []
650+ from pprint import pprint
651+ print (len (activities ))
652+ pprint (activities )
642653 for activity in activities :
654+ pprint (activity )
643655 ids .append (activity ['id' ])
644656 self .assertFalse (activity ['is_read' ])
645657 ids = ids [:2 ]
0 commit comments