diff options
Diffstat (limited to 'server/tests/test_index.py')
-rw-r--r-- | server/tests/test_index.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/server/tests/test_index.py b/server/tests/test_index.py index 45de92b..2796c1d 100644 --- a/server/tests/test_index.py +++ b/server/tests/test_index.py @@ -4,23 +4,23 @@ from app import app class TestIndex(unittest.TestCase): - def setUp(self): - self.b = app.browser() - self.b.open('/') + def setUp(self): + self.b = app.browser() + self.b.open('/') - def test_basic(self): - self.assertEqual(self.b.path, '/') - self.assertEqual(self.b.status, 200) + def test_basic(self): + self.assertEqual(self.b.path, '/') + self.assertEqual(self.b.status, 200) - def test_content(self): - self.assertTrue('Welcome to the gentoostats webapp' in self.b.data) + def test_content(self): + self.assertTrue('Welcome to the gentoostats webapp' in self.b.data) - def test_hosts(self): - self.assertTrue('Number of hosts' in self.b.data) - lines = self.b.data.split('\n') - for line in lines: - if line.startswith('Number of hosts'): - words = line.split() - count = int(words[-1].strip('</br>')) - self.assertGreaterEqual(count,0) - break + def test_hosts(self): + self.assertTrue('Number of hosts' in self.b.data) + lines = self.b.data.split('\n') + for line in lines: + if line.startswith('Number of hosts'): + words = line.split() + count = int(words[-1].strip('</br>')) + self.assertGreaterEqual(count,0) + break |