/usr/lib/python2.7/dist-packages/demo/google.py is in python-webunit 1:1.3.10-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | from webunit.webunittest import WebTestCase
import unittest
class TestGoogle(WebTestCase):
def setUp(self):
self.server = 'www.google.com'
def test_home(self):
page = self.page('/')
def test_form_good(self):
page = self.page('/')
page = page.getForm(0, self.page, {'q': 'Python Rules',
'btnG': 'Google Search'})
def test_form_bad(self):
page = self.page('/')
page = page.getForm(0, self.assertContent,
{'q': 'eereerererre', 'btnG': 'Google Search'},
'did not match any documents')
def suite():
l = [
unittest.makeSuite(TestGoogle, 'test'),
]
return unittest.TestSuite(l)
|