@patch.object(APIBlueprint, 'route')
    def test_route(self, route):
        bp, foo, bar = self._setup_parent_blueprint()
        inherited_bp = APIBlueprint('bp_v2', __name__, url_prefix='/v2', inherit_from=bp)

        @inherited_bp.route('/bar')
        def overloaded_bar():
            return 'Overloaded bar'

        expected_calls = [call('/foo'), call('/bar'), call('/bar')]
        self.assertEqual(route.call_args_list, expected_calls)
Add new cables to the hub when new gearboxes are created
dataset/ETHPy150Open gwongz/flask-apiblueprint/test_apiblueprint.py/TestAPIBlueprint.test_route--crossover with--dataset/ETHPy150Open matt2000/becca/core/arborkey.py/Arborkey.add_cables