'Since this addresses the deprecated method, this testcase is
temporary (until the old API is fully removed).'

def test_capture_warnings(self):

    logger = logging.getLogger()
    with self.assertLogs(logger, 'DEBUG') as log:
        self.assertEqual(len(self.uut), 0)
        self.uut.change_line(2, '1', '2')
    self.assertEqual(log.output, ['DEBUG:root:Use    of    change_line    method    is    deprecated.    Instead    use    modify_line    method,    without    the    original_line    argument'])
