NestedSimpleRouter.__init__ calls this method

def _register_nested_router(self, router):
        """
        NestedSimpleRouter.__init__ calls this method
        """
        assert issubclass(router.__class__, NestedSimpleRouter), "You can only register NestedSimpleRouters"
        self.nested_routers.append(router)