def test_extraction(self): line = 'This is a line http://www.foo.org [[~/Notes/.Archive/aa.html|(Archive)]] and http://www.bar.org [[~/Notes/.Archive/bb.html|(Archive)]] and so on' result = extract_labels_filepath(line) self.assertEqual(result, ['~/Notes/.Archive/aa.html', '~/Notes/.Archive/bb.html'])
def test_extraction_simple(self): line = 'This is a line http://www.foo.org [[~/Notes/.Archive/aa.html|(Archive)]]' result = extract_labels_filepath(line) self.assertEqual(result, ['~/Notes/.Archive/aa.html'])