Пример #1
0
    def test_args(self):
        expected = EXT_TABLES | EXT_FENCED_CODE | EXT_FOOTNOTES
        result = args_to_int(
            extension_map,
            ('tables', 'fenced-code', 'footnotes'))

        ok(result) == expected
Пример #2
0
    def test_int(self):
        expected = EXT_TABLES | EXT_FENCED_CODE | EXT_FOOTNOTES
        result = args_to_int(extension_map, expected)

        ok(result) == expected