test_check.py 386 Bytes
Newer Older
boklm's avatar
boklm committed
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python
import unittest, time, re
import tbbtest

class CheckTpo(tbbtest.TBBTest):
    def test_check_tpo(self):
        driver = self.driver
        driver.get("http://check.torproject.org/")
        self.assertEqual("Congratulations. This browser is configured to use Tor.", driver.find_element_by_css_selector("h1.on").text)

if __name__ == "__main__":
    unittest.main()