# Path: gunstar/utils.py
# def import_object(name):
#     """ from tornado.utils.import_object """
#     if name.count('.') == 0:
#         return __import__(name, None, None)
# 
#     parts = name.split('.')
#     obj = __import__('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
#     try:
#         return getattr(obj, parts[-1])
#     except AttributeError:
#         raise ImportError("No module named %s" % parts[-1])


import unittest
        import gunstar
from gunstar.utils import import_object
        from tests.resources import config_settings
# -*- coding: utf-8 -*-


class UtilsTestCase(unittest.TestCase):

    def test_import_object(self):
        self.assertEqual(
            import_object('gunstar.http.Request'),
            gunstar.http.Request
        )
        self.assertEqual(
            import_object('gunstar.http.Response'),
            gunstar.http.Response
        )
        self.assertEqual(
            import_object('gunstar.http'),
            gunstar.http
        )
        self.assertEqual(

# Path: gunstar/utils.py
# def import_object(name):
#     """ from tornado.utils.import_object """
#     if name.count('.') == 0:
#         return __import__(name, None, None)
# 
#     parts = name.split('.')
#     obj = __import__('.'.join(parts[:-1]), None, None, [parts[-1]], 0)
#     try:
#         return getattr(obj, parts[-1])
#     except AttributeError:
#         raise ImportError("No module named %s" % parts[-1])


# Path: tests/test_utils.py
import unittest
        import gunstar
from gunstar.utils import import_object
        from tests.resources import config_settings

# -*- coding: utf-8 -*-


class UtilsTestCase(unittest.TestCase):

    def test_import_object(self):
        self.assertEqual(
            import_object('gunstar.http.Request'),
            gunstar.http.Request
        )
        self.assertEqual(
            import_object('gunstar.http.Response'),
            gunstar.http.Response
        )
        self.assertEqual(
            import_object('gunstar.http'),
            gunstar.http
        )
        self.assertEqual(

            import_object('tests.resources.config_settings'),