summaryrefslogtreecommitdiff
path: root/tests/test_basic_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_basic_app.py')
-rw-r--r--tests/test_basic_app.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_basic_app.py b/tests/test_basic_app.py
index 11d1f40..1ddb52b 100644
--- a/tests/test_basic_app.py
+++ b/tests/test_basic_app.py
@@ -1,9 +1,12 @@
-from paste.deploy import loadapp, loadfilter, appconfig
-from fixture import *
+from paste.deploy import loadapp
+
+from tests.fixture import *
import fakeapp.apps
+
here = os.path.dirname(__file__)
+
def test_main():
app = loadapp('config:sample_configs/basic_app.ini',
relative_to=here)
@@ -18,11 +21,12 @@ def test_main():
relative_to=here, name='main')
assert app is fakeapp.apps.basic_app
+
def test_other():
app = loadapp('config:sample_configs/basic_app.ini#other',
relative_to=here)
assert app is fakeapp.apps.basic_app2
-
+
def test_composit():
app = loadapp('config:sample_configs/basic_app.ini#remote_addr',
@@ -30,5 +34,3 @@ def test_composit():
assert isinstance(app, fakeapp.apps.RemoteAddrDispatch)
assert app.map['127.0.0.1'] is fakeapp.apps.basic_app
assert app.map['0.0.0.0'] is fakeapp.apps.basic_app2
-
-