Code Duplication    Length = 12-12 lines in 2 locations

django-data/image/submissions/tests/test_view_reload_submission.py 1 location

@@ 209-220 (lines=12) @@
206
207
        self.assertTrue(my_excel.called)
208
209
    @patch.dict(
210
            "excel.helpers.exceltemplate.TEMPLATE_COLUMNS",
211
            {'breed': ["a column"]})
212
    @patch('submissions.views.ImportTemplateTask.delay')
213
    def test_template_issues_in_columns(self, my_task):
214
        # submit a template file
215
        response = self.client.post(
216
            self.url,
217
            self.get_data(ds_file=TEMPLATE_TYPE))
218
219
        # check errors
220
        self.common_check(response, my_task)
221
222
223
class CRBAnimReloadSubmissionViewTest(

django-data/image/submissions/tests/test_view_new_submission.py 1 location

@@ 286-297 (lines=12) @@
283
284
        self.assertTrue(my_excel.called)
285
286
    @patch.dict(
287
            "excel.helpers.exceltemplate.TEMPLATE_COLUMNS",
288
            {'breed': ["a column"]})
289
    @patch('submissions.views.ImportTemplateTask.delay')
290
    def test_template_issues_in_columns(self, my_task):
291
        # submit a template file
292
        response = self.client.post(
293
            self.url,
294
            self.get_data(ds_file=TEMPLATE_TYPE))
295
296
        # check errors
297
        self.common_check(response, my_task)
298
299
    @patch('submissions.views.ImportCRBAnimTask.delay')
300
    @patch('submissions.views.ImportTemplateTask.delay')