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)

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 .