Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/units/model/routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/model/routes.py')
-rwxr-xr-xtests/units/model/routes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/units/model/routes.py b/tests/units/model/routes.py
index dd5bcb3..04491ee 100755
--- a/tests/units/model/routes.py
+++ b/tests/units/model/routes.py
@@ -18,7 +18,7 @@ from sugar_network.toolkit import coroutine
class RoutesTest(tests.Test):
def test_StaticFiles(self):
- router = Router(model.Routes())
+ router = Router(model.FrontRoutes())
local_path = src_root + '/sugar_network/static/httpdocs/images/missing.png'
response = []
@@ -48,7 +48,7 @@ class RoutesTest(tests.Test):
def prop(self, value):
return value
- routes = model.Routes()
+ routes = model.FrontRoutes()
volume = db.Volume('db', [Document], routes.broadcast)
events = []
@@ -81,7 +81,7 @@ class RoutesTest(tests.Test):
events)
def test_SubscribeWithPong(self):
- routes = model.Routes()
+ routes = model.FrontRoutes()
for event in routes.subscribe(ping=True):
break
self.assertEqual('data: {"event": "pong"}\n\n', event)