def test_first_handler(self): context = Context('') context.prepare() assert context.classify(": foo") is context._handler[0]
def test_prepare_required_translator_priority(self): context = Context('') context.prepare() assert isinstance(context._handler[0], Module), "Module must be first priority." assert isinstance(context._handler[-1], Code), "Code must be last priority."