source: cows/trunk/cows/test/testapp/tests/test_fixture.py @ 4613

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

Improved testing for COWS.

To effectively test COWS you need a Pylons application. I've created a
mini pylons app in cows/test/testapp that is automatically wired into
the Pylons testing framework when you run "nosetests cows". See
cows/test/README.

Line 
1"""
2Test that the testapp Pylons application is correctly initialised.
3
4"""
5
6from cows.test.testapp.tests import TestController
7
8class TestFixture(TestController):
9    def testStaticPage(self):
10        r = self.app.get('/test.html')
11        assert 'TEST COWS testapp' in r.body
12
Note: See TracBrowser for help on using the repository browser.