Download this file

test_root.py    19 lines (11 with data), 531 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
from nose.tools import assert_true
from helloforge.tests import TestController
class TestRootController(TestController):
def test_index(self):
response = self.app.get('/hello_forge/')
assert_true('HelloForge Index Page' in response)
assert_true('HelloForge Index Page' in response)
def test_index2(self):
response = self.app.get('/hello_forge/')
assert_true('HelloForge Index Page' in response)
assert_true('HelloForge Index Page' in response)