source: cows/trunk/cows/test/testapp/tests/test_wxs.py @ 4622

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/test/testapp/tests/test_wxs.py@4622
Revision 4622, 383 bytes checked in by spascoe, 12 years ago (diff)

Added a trivial test to see if buildbot picks it up.

Line 
1
2from cows.test.testapp.tests import TestController
3
4class TestWXS(TestController):
5    def testGetPiza(self):
6        r = self.app.get('/wxs?REQUEST=GetPiza')
7        assert 'One cheese and tomato piza to go!' in r.body
8
9    def testException(self):
10        r = self.app.get('/wxs?REQUEST=NoOp', status=400)
11        assert r.status == 400
12        assert 'ExceptionReport' in r.body
Note: See TracBrowser for help on using the repository browser.