# Path: snakeguice/extras/snakeweb.py
# def is_unbound_method(func):
#     def __init__(self, mapper, annotation):
#     def connect(self, *args, **kwargs):
#     def match(self, url, environ):
#     def run_configure(self, binder):
#     def configure(self, routes_binder):
#     def configure(self, routes_binder):
#     def __init__(self, injector):
#     def __call__(self, environ, start_response):
#     def controller_from_class(self, controller, action):
#     def controller_from_method(self, controller):
# class RoutesBinder(object):
# class RoutesModule(Module):
# class AutoRoutesModule(RoutesModule):
# class Application(object):


from nose.tools import raises
from nose.plugins.skip import SkipTest
from mock import Mock, patch
from snakeguice.extras import snakeweb



class TestRoutesModuleSetup(object):

    @patch('snakeguice.extras.snakeweb.routes')
    def setup(self, mock_routes):
        self.mock_routes = mock_routes

        class MyRoutesModule(snakeweb.RoutesModule):
            configure = Mock()

        self.binder = Mock()
        self.module = MyRoutesModule()
        self.module.run_configure(binder=self.binder)

    def test_configure_is_called_with_a_mapper(self):
        raise SkipTest
        assert self.module.configure.calls('()',

# Path: snakeguice/extras/snakeweb.py
# def is_unbound_method(func):
#     def __init__(self, mapper, annotation):
#     def connect(self, *args, **kwargs):
#     def match(self, url, environ):
#     def run_configure(self, binder):
#     def configure(self, routes_binder):
#     def configure(self, routes_binder):
#     def __init__(self, injector):
#     def __call__(self, environ, start_response):
#     def controller_from_class(self, controller, action):
#     def controller_from_method(self, controller):
# class RoutesBinder(object):
# class RoutesModule(Module):
# class AutoRoutesModule(RoutesModule):
# class Application(object):


# Path: tests/test_snakeweb.py
from nose.tools import raises
from nose.plugins.skip import SkipTest
from mock import Mock, patch
from snakeguice.extras import snakeweb




class TestRoutesModuleSetup(object):

    @patch('snakeguice.extras.snakeweb.routes')
    def setup(self, mock_routes):
        self.mock_routes = mock_routes

        class MyRoutesModule(snakeweb.RoutesModule):
            configure = Mock()

        self.binder = Mock()
        self.module = MyRoutesModule()
        self.module.run_configure(binder=self.binder)

    def test_configure_is_called_with_a_mapper(self):
        raise SkipTest
        assert self.module.configure.calls('()',

                snakeweb.RoutesBinder.return_value)