Пример #1
0
def register_default_handlers():
    """
    Register the default base level handlers required to run a Cement
    application.
    """
    register_handler('output', 'genshi', GenshiOutputHandler)
    register_handler('output', 'json', JsonOutputHandler)
Пример #2
0
def test_register_duplicate_handler():
    register_handler('output', 'json', None)
Пример #3
0
def test_register_to_bogus_handler():
    register_handler('bogus_handler', 'bogus', None)
Пример #4
0
def test_register_duplicate_handler():  
    register_handler('output', 'json', None)
Пример #5
0
def test_register_to_bogus_handler():  
    register_handler('bogus_handler', 'bogus', None)