|  | @@ 188-198 (lines=11) @@ | 
                                                            
                                    | 185 |  |         self.assertIn('script', data) | 
                                                            
                                    | 186 |  |         self.assertEqual(data['script'], self.script_content) | 
                                                            
                                    | 187 |  |  | 
                                                            
                                    | 188 |  |     def test_45_run_with_saved_script(self): | 
                                                            
                                    | 189 |  |         rv = self.app.post('/debug/test_project/run', data={ | 
                                                            
                                    | 190 |  |             'webdav_mode': 'true', | 
                                                            
                                    | 191 |  |             'script': '', | 
                                                            
                                    | 192 |  |             'task': self.task_content | 
                                                            
                                    | 193 |  |         }) | 
                                                            
                                    | 194 |  |         self.assertEqual(rv.status_code, 200) | 
                                                            
                                    | 195 |  |         data = json.loads(utils.text(rv.data)) | 
                                                            
                                    | 196 |  |         self.assertIn(b'follows', rv.data) | 
                                                            
                                    | 197 |  |         self.assertGreater(len(data['follows']), 0) | 
                                                            
                                    | 198 |  |         self.__class__.task_content2 = data['follows'][0] | 
                                                            
                                    | 199 |  |  | 
                                                            
                                    | 200 |  |     def test_50_index_page_list(self): | 
                                                            
                                    | 201 |  |         rv = self.app.get('/') | 
                                                                                
                                |  | @@ 134-143 (lines=10) @@ | 
                                                            
                                    | 131 |  |         self.assertIn('127.0.0.1:14887', m.group(1)) | 
                                                            
                                    | 132 |  |         self.__class__.script_content = json.loads(m.group(1)) | 
                                                            
                                    | 133 |  |  | 
                                                            
                                    | 134 |  |     def test_30_run(self): | 
                                                            
                                    | 135 |  |         rv = self.app.post('/debug/test_project/run', data={ | 
                                                            
                                    | 136 |  |             'script': self.script_content, | 
                                                            
                                    | 137 |  |             'task': self.task_content | 
                                                            
                                    | 138 |  |         }) | 
                                                            
                                    | 139 |  |         self.assertEqual(rv.status_code, 200) | 
                                                            
                                    | 140 |  |         data = json.loads(utils.text(rv.data)) | 
                                                            
                                    | 141 |  |         self.assertIn(b'follows', rv.data) | 
                                                            
                                    | 142 |  |         self.assertGreater(len(data['follows']), 0) | 
                                                            
                                    | 143 |  |         self.__class__.task_content2 = data['follows'][0] | 
                                                            
                                    | 144 |  |  | 
                                                            
                                    | 145 |  |     def test_32_run_bad_task(self): | 
                                                            
                                    | 146 |  |         rv = self.app.post('/debug/test_project/run', data={ |