Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: d07819bc7f
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (26 sloc) 0.832 kB
Nose tests for the web server
import web_server
def skipped(func):
from nose.plugins.skip import SkipTest
def _(*args, **kwds):
raise SkipTest("Test %s is skipped" % func.__name__)
_.__name__ = func.__name__
return _
class TestWebReplies:
def setUp(self):['TESTING'] = True =
# set up temp mongodb instance
def tearDown(self):
# clean up temp mongodb instance
def test_front_page(self):
rv ='/')
assert '<title>Sage Cell Server</title>' in
#only passes if the config url is available, so turn this test on selectively
def test_config(self):
rv ='/config')
assert 'webserver=' in
Jump to Line
Something went wrong with that request. Please try again.