def setUp(self): super(TestServerCommunication, self).setUp() self.browser = Browser() # Build the path to the example.html file path = os.path.dirname(os.path.abspath(__file__)) path = os.path.join(path, 'helpers', 'example.html') self.path = 'file://%s' % path