コード例 #1
0
    def test_list_format52(self):
        config(
            p_overrides={
                ('topydo', 'identifier_alphabet'): '0123456789abcdef',
                ('topydo', 'identifiers'): 'text'
            })

        # make sure that it fallbacks to the default alphabet
        todolist = TodoListBase([str(i) for i in range(0, 100 * 16 * 10)])
        self.assertEqual(4, todolist.max_id_length())
コード例 #2
0
ファイル: test_list_format.py プロジェクト: bram85/topydo
    def test_list_format52(self):
        config(p_overrides={('topydo', 'identifier_alphabet'): '0123456789abcdef', ('topydo', 'identifiers'): 'text'})

        # make sure that it fallbacks to the default alphabet
        todolist = TodoListBase([str(i) for i in range(0, 100 * 16 * 10)])
        self.assertEqual(4, todolist.max_id_length())