def test_bugdown_fixtures(self):
        format_tests, linkify_tests = self.load_bugdown_tests()

        self.maxDiff = None
        for name, test in six.iteritems(format_tests):
            converted = bugdown_convert(test['input'])

            print("Running Bugdown test %s" % (name,))
            self.assertEqual(converted, test['expected_output'])

        def replaced(payload, url, phrase=''):
            target = " target=\"_blank\""
            if url[:4] == 'http':
                href = url
            elif '@' in url:
                href = 'mailto:' + url
                target = ""
            else:
                href = 'http://' + url
            return payload % ("<a href=\"%s\"%s title=\"%s\">%s</a>" % (href, target, href, url),)


        print("Running Bugdown Linkify tests")
        self.maxDiff = None
        for inline_url, reference, url in linkify_tests:
            try:
                match = replaced(reference, url, phrase=inline_url)
            except __HOLE__:
                match = reference
            converted = bugdown_convert(inline_url)
            self.assertEqual(match, converted)
dataset/ETHPy150Open zulip/zulip/zerver/tests/test_bugdown.py/BugdownTest.test_bugdown_fixtures