~testdoc-dev/testdoc/trunk.git

« back to all changes in this revision

Viewing changes to testdoc/tests/hastests.py

  • Committer: jml@canonical.com
  • Date: 2007-03-25 09:47:54 UTC
  • Revision ID: git-v1:efaa91a66979f582c7692974477fb9b0716ba2d7
First draft after a day of hacking on a crazy python test -> doc tool.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""A sample test module."""
 
2
 
 
3
import unittest
 
4
 
 
5
class SomeTest(unittest.TestCase):
 
6
    """This is a test class that doesn't do anything."""
 
7
 
 
8
    def test_foo_handles_qux(self):
 
9
        """Objects should have only one responsibility."""
 
10
 
 
11
    def test_bar(self):
 
12
        """Do one thing and do it well."""
 
13
 
 
14
 
 
15
class AnotherTest(unittest.TestCase):
 
16
    def test_baz(self):
 
17
        pass
 
18