from flask import Flask
from .view_classes import BasicView, RouteBaseView
from nose.tools import *

app = Flask('route_base')
BasicView.register(app, route_base="/rb_test/")
BasicView.register(app)
RouteBaseView.register(app, route_base="/rb_test2/")
RouteBaseView.register(app)


def test_registered_route_base():
    client = app.test_client()
    resp = client.get('/rb_test/')
    eq_(b"Index", resp.data)


def test_no_route_base_after_register_route_base():
    client = app.test_client()
    resp = client.get('/basic/')
    eq_(b"Index", resp.data)


def test_route_base_override():
    client = app.test_client()
    resp = client.get('/rb_test2/')
    eq_(b"Index", resp.data)


def test_route_base_after_route_base_override():
    client = app.test_client()
    resp = client.get('/base-routed/')
    eq_(b"Index", resp.data)
@@ -124,714 +124,187 @@
 e')%0A
-BasicView.register(app, route_base=%22/rb_test/%22)%0ABasicView.register(app)%0ARouteBaseView.register(app, route_base=%22/rb_test2/%22)%0ARouteBaseView.register(app)%0A%0A%0Adef test_registered_route_base():%0A    client = app.test_client()%0A    resp = client.get('/rb_test/')%0A    eq_(b%22Index%22, resp.data)%0A%0A%0Adef test_no_route_base_after_register_route_base():%0A    client = app.test_client()%0A    resp = client.get('/basic/')%0A    eq_(b%22Index%22, resp.data)%0A%0A%0Adef test_route_base_override():%0A    client = app.test_client()%0A    resp = client.get('/rb_test2/')%0A    eq_(b%22Index%22, resp.data)%0A%0A%0Adef test_route_base_after_route_base_override():%0A    client = app.test_client()%0A    resp = client.get('/base-routed/')%0A    eq_(b%22Index%22, resp.data)
+RouteBaseView.register(app, route_base=%22/rb_test2/%22)%0A%0A%0Adef test_route_base_override():%0A    client = app.test_client()%0A    resp = client.get('/rb_test2/')%0A    eq_(b%22Index%22, resp.data)%0A

Remove some route_base tests that are no longer valid with Flask 0.10