]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/tests/faq_page.py
be able to have user links without ids in the url, wrapped in a setting of the URL...
[osqa.git] / forum / skins / default / tests / faq_page.py
1 from selenium import selenium
2 import unittest, time, re
3
4 class faq_page(unittest.TestCase):
5     def setUp(self):
6         self.verificationErrors = []
7         self.selenium = selenium("localhost", 4444, "*chrome", "http://127.0.0.1:8000/")
8         self.selenium.start()
9     
10     def test_faq_page(self):
11         sel = self.selenium
12         sel.open("/faq/")
13         try: self.failUnless(sel.is_text_present("FAQ"))
14         except AssertionError, e: self.verificationErrors.append(str(e))
15     
16     def tearDown(self):
17         self.selenium.stop()
18         self.assertEqual([], self.verificationErrors)
19
20 if __name__ == "__main__":
21     unittest.main()