~launchpad-pqm/launchpad/devel

8687.15.45 by Karl Fogel
Add license header block to files brought in in the r8731 merge.
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
8911.2.2 by Stuart Bishop
Launchpad Frontpage example
3
4
"""Launchpad frontpage FunkLoad test"""
5
6
__metaclass__ = type
7
__all__ = []
8
9
import unittest
10
11
from funkload.FunkLoadTestCase import FunkLoadTestCase
12
13
14
class Frontpage(FunkLoadTestCase):
15
    """Test anonymous access to the Launchpad front page."""
16
17
    def setUp(self):
18
        """Setting up test."""
19
        self.logd("setUp")
8911.2.5 by Stuart Bishop
Review feedback
20
        self.server_url = self.conf_get('main', 'url')
8911.2.2 by Stuart Bishop
Launchpad Frontpage example
21
22
    def test_frontpage(self):
8911.2.5 by Stuart Bishop
Review feedback
23
        self.get(self.server_url, description="Get /")
8911.2.2 by Stuart Bishop
Launchpad Frontpage example
24
25
    def tearDown(self):
26
        """Setting up test."""
27
        self.logd("tearDown.\n")
28
29
30
if __name__ in ('main', '__main__'):
31
    unittest.main()