@@ -92,24 +92,30 @@ def test_get(self):
9292 # try id_lt based
9393 activities = self .user1 .get (limit = 2 , id_lt = activity_id_two )['results' ]
9494 self .assertEqual (activities [0 ]['id' ], activity_id )
95-
95+
9696 def test_api_key_exception (self ):
9797 self .c = stream .connect (
9898 '5crf3bhfzesnMISSING' ,
9999 'tfq2sdqpj9g446sbv653x3aqmgn33hsn8uzdc9jpskaw8mj6vsnhzswuwptuj9su'
100100 )
101101 self .user1 = self .c .feed ('user:1' )
102- activity_data = {'actor' : 1 , 'verb' : 'tweet' , 'object' : 1 , 'debug_example_undefined' : 'test' }
103- self .assertRaises (ApiKeyException , lambda : self .user1 .add_activity (activity_data ))
104-
102+ activity_data = {'actor' : 1 , 'verb' : 'tweet' ,
103+ 'object' : 1 , 'debug_example_undefined' : 'test' }
104+ self .assertRaises (ApiKeyException , lambda :
105+ self .user1 .add_activity (activity_data ))
106+
105107 def test_missing_field_exception (self ):
106- activity_data = {'actor' : 1 , 'verb' : 'tweet' , 'object' : 1 , 'debug_example_undefined' : 'test' }
107- self .assertRaises (CustomFieldException , lambda : self .user1 .add_activity (activity_data ))
108-
108+ activity_data = {'actor' : 1 , 'verb' : 'tweet' ,
109+ 'object' : 1 , 'debug_example_undefined' : 'test' }
110+ self .assertRaises (CustomFieldException , lambda :
111+ self .user1 .add_activity (activity_data ))
112+
109113 def test_missing_actor (self ):
110- activity_data = {'verb' : 'tweet' , 'object' : 1 , 'debug_example_undefined' : 'test' }
111- self .assertRaises (InputException , lambda : self .user1 .add_activity (activity_data ))
112-
114+ activity_data = {'verb' : 'tweet' , 'object' :
115+ 1 , 'debug_example_undefined' : 'test' }
116+ self .assertRaises (InputException , lambda :
117+ self .user1 .add_activity (activity_data ))
118+
113119 def test_wrong_feed_spec (self ):
114120 self .c = stream .connect (
115121 '5crf3bhfzesnMISSING' ,
0 commit comments