summaryrefslogtreecommitdiff
path: root/functional_tests/support
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2007-04-13 02:45:24 +0000
committerJason Pellerin <jpellerin@gmail.com>2007-04-13 02:45:24 +0000
commitef439f028b7cfa01bfb4b0bbca41c1201f3d8b0a (patch)
tree764b441b7642d31e901ef1db12f5fd91dd31d25b /functional_tests/support
parentc870e2265f66d62106d98c76523989ebcc39cc01 (diff)
downloadnose-ef439f028b7cfa01bfb4b0bbca41c1201f3d8b0a.tar.gz
Started attrib plugin functional test suite. Fixed bugs in attrib plugin.
Diffstat (limited to 'functional_tests/support')
-rw-r--r--functional_tests/support/att/test_attr.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/functional_tests/support/att/test_attr.py b/functional_tests/support/att/test_attr.py
new file mode 100644
index 0000000..4f73d9f
--- /dev/null
+++ b/functional_tests/support/att/test_attr.py
@@ -0,0 +1,37 @@
+import unittest
+
+def test_one():
+ pass
+test_one.a = 1
+
+def test_two():
+ pass
+test_two.a = 1
+
+def test_three():
+ pass
+test_three.b = 1
+
+class TestClass:
+ a = 1
+ def test_class_one(self):
+ pass
+
+ def test_class_two(self):
+ pass
+ test_class_two.b = 2
+
+ def test_class_three(self):
+ pass
+
+
+class Something(unittest.TestCase):
+ b = 2
+ def test_case_one(self):
+ pass
+
+ def test_case_two(self):
+ pass
+
+ def test_case_three(self):
+ pass