Example #1
0
    def test_symbol_generator_symbols(self):
        symbols = ['*', u'†', u'‡', u'§',]
        generator = footnotes.symbol_generator(symbols=symbols)

        expected = [
            '*', u'†', u'‡', u'§', '**', u'††', u'‡‡', u'§§', '***', u'†††',
        ]
        actual = []
        for _ in range(10):
            actual.append(next(generator))
        self.assertEquals(expected, actual)
Example #2
0
    def test_symbol_generator(self):
        generator = footnotes.symbol_generator()

        expected = [
            '*', u'†', u'‡', u'§', u'||', u'¶', '#',
            '**', u'††', u'‡‡', u'§§', u'||||', u'¶¶', '##',
            '***', u'†††', u'‡‡‡', u'§§§', u'||||||', u'¶¶¶', '###',
        ]
        actual = []
        for _ in range(21):
            actual.append(next(generator))
        self.assertEquals(expected, actual)