コード例 #1
0
ファイル: test_misc.py プロジェクト: hepochen/hoedown_misaka
    def test_from_dict(self):
        expected = EXT_TABLES | EXT_FENCED_CODE | EXT_FOOTNOTES
        result = reduce_dict(
            extension_map,
            ('tables', 'fenced-code', 'footnotes'))

        ok(result) == expected
コード例 #2
0
ファイル: test_misc.py プロジェクト: hepochen/hoedown_misaka
    def test_from_int(self):
        expected = EXT_TABLES | EXT_FENCED_CODE | EXT_FOOTNOTES
        result = reduce_dict(extension_map, expected)

        ok(result) == expected