~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testopenid/stories/tests.py

  • Committer: Guilherme Salgado
  • Date: 2010-01-21 14:47:51 UTC
  • mto: (10212.3.1 testopenid)
  • mto: This revision was merged to the branch mainline in revision 10375.
  • Revision ID: salgado@canonical.com-20100121144751-ib067sr2nsfrmqej
Some basic tests for the test openid provider

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2004-2008 Canonical Ltd.  All rights reserved.
 
2
 
 
3
import os
 
4
import unittest
 
5
 
 
6
from canonical.launchpad.testing.pages import PageTestSuite
 
7
 
 
8
 
 
9
here = os.path.dirname(os.path.realpath(__file__))
 
10
 
 
11
 
 
12
def test_suite():
 
13
    stories = sorted(
 
14
        dir for dir in os.listdir(here)
 
15
        if not dir.startswith('.') and os.path.isdir(os.path.join(here, dir)))
 
16
 
 
17
    suite = unittest.TestSuite()
 
18
    suite.addTest(PageTestSuite('.'))
 
19
    for storydir in stories:
 
20
        suite.addTest(PageTestSuite(storydir))
 
21
 
 
22
    return suite