@@ -115,7 +115,7 @@ def test_empty_argument(self):
115115
116116 def test_missing_argument (self ):
117117 """Should respond 400 when a POST request is missing an argument"""
118- for key in self .data :
118+ for key in list ( self .data ) :
119119 backup = self .data [key ]
120120 del (self .data [key ])
121121 response = self .client .post (self .path , self .data )
@@ -147,8 +147,7 @@ def test_report_is_created(self):
147147 def test_submit_data_with_none_timestamp (self ):
148148 """Should add a default revision date when timestamp is None"""
149149 modified_data = copy .deepcopy (self .data )
150- # The value None will get urlencoded and converted to a "None" string
151- modified_data ['revision_date' ] = None
150+ modified_data ['revision_date' ] = 'None'
152151 response = self .client .post (self .path , modified_data )
153152 self .assertEquals (response .status_code , 202 )
154153
@@ -293,7 +292,7 @@ def test_empty_argument(self):
293292 def test_missing_argument (self ):
294293 '''Should return 400 when making a request with a missing argument'''
295294 data = self .data [2 ]
296- for key in data :
295+ for key in list ( data ) :
297296 backup = data [key ]
298297 del (data [key ])
299298 response = self .client .post (self .path ,
@@ -338,7 +337,7 @@ def test_timeline(self):
338337 response = self .client .get (path )
339338 self .assertEquals (response .status_code , 200 )
340339 responsedata = response .content .decode ()
341- self .assertIn ('My Own Title \n : Timeline' , responsedata )
340+ self .assertIn ("MyProject's Speed Center : Timeline" , responsedata )
342341
343342 def test_gettimelinedata (self ):
344343 """Test that gettimelinedata returns correct timeline data
0 commit comments