def test_simple_class_based_view():
    @hug.object.urls('/endpoint', requires=())
    class MyClass(object):

        @hug.object.get()
        def my_method(self):
            return 'hi there!'

        @hug.object.post()
        def my_method_two(self):
            return 'bye'

    assert hug.test.get(api, 'endpoint').data == 'hi there!'
    assert hug.test.post(api, 'endpoint').data == 'bye'
Send a screen call.
dataset/ETHPy150Open timothycrosley/hug/tests/test_route.py/test_simple_class_based_view--crossover with--dataset/ETHPy150Open KunihikoKido/sublime-elasticsearch-client/lib/analytics/__init__.py/screen