~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to benchmarks/test_frontpage.py

  • Committer: Stuart Bishop
  • Date: 2009-07-16 07:14:11 UTC
  • mto: This revision was merged to the branch mainline in revision 8958.
  • Revision ID: stuart.bishop@canonical.com-20090716071411-41bl8qxkq0cp7cez
Launchpad Frontpage example

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2009 Canonical Ltd.  All rights reserved.
 
2
 
 
3
"""Launchpad frontpage FunkLoad test"""
 
4
 
 
5
__metaclass__ = type
 
6
__all__ = []
 
7
 
 
8
import unittest
 
9
 
 
10
from funkload.utils import Data
 
11
from funkload.FunkLoadTestCase import FunkLoadTestCase
 
12
from webunit.utility import Upload
 
13
 
 
14
from canonical.config import config
 
15
 
 
16
class Frontpage(FunkLoadTestCase):
 
17
    """Test anonymous access to the Launchpad front page."""
 
18
 
 
19
    def setUp(self):
 
20
        """Setting up test."""
 
21
        self.logd("setUp")
 
22
        self.root_url = 'https://%s/' % config.vhost.mainsite.hostname
 
23
 
 
24
    def test_frontpage(self):
 
25
        self.get(self.root_url, description="Get frontpage")
 
26
 
 
27
    def tearDown(self):
 
28
        """Setting up test."""
 
29
        self.logd("tearDown.\n")
 
30
 
 
31
 
 
32
if __name__ in ('main', '__main__'):
 
33
    unittest.main()