Exemple #1
0
    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
Exemple #2
0
    def test_from_int(self):
        expected = EXT_TABLES | EXT_FENCED_CODE | EXT_FOOTNOTES
        result = reduce_dict(extension_map, expected)

        ok(result) == expected