text: import unittest
  
  from kaa import Request, Resources
  
  
  class DecoratorsTest(unittest.TestCase):
  
      def get_resource(self, method='', path='path', q=''):
          request = Request({
              'REQUEST_METHOD': method,
              'PATH_INFO': path,
              'REMOTE_ADDR': '127.0.0.1',
              'QUERY_STRING': q
          })
          return Resources(request)
  