def test_routing_instance():
    class EndPoint(object):

        @hug.object
        def one(self):
            return 'one'

        @hug.object
        def two(self):
            return 2

    hug.object.get()(EndPoint())
    assert hug.test.get(api, 'one').data == 'one'
    assert hug.test.get(api, 'two').data == 2
Test to ensure its possible to route a class after it is instanciated
dataset/ETHPy150Open timothycrosley/hug/tests/test_route.py/test_routing_instance