1
by jml@canonical.com
First draft after a day of hacking on a crazy python test -> doc tool. |
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 |