def test_repeat_name(self):
    with self.assertRaisesWithLiteralMatch(ValueError, 'Attempting to register duplicate provider: text_line_task'):
        self.add_task('text_line_task', self.text_line_source)
def test_repeat_name(self):
    with self.assertRaisesWithLiteralMatch(ValueError, 'Attempting to register duplicate provider: text_line_task'):
        self.add_task('text_line_task', self.text_line_source)