aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-12-12 21:00:32 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:34 -0300
commit016a34e8eb8d5be5ddd27d49ab141c59359beea7 (patch)
tree9d6a1bc6cbc447efaa00779ae3556d6b938e8806 /tests/samplebinding
parentbebb9009a1f400fae548ba2a6e0553fc2643c6e2 (diff)
Removed commented section of test file.
Diffstat (limited to 'tests/samplebinding')
-rw-r--r--tests/samplebinding/deprecated_test.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/samplebinding/deprecated_test.py b/tests/samplebinding/deprecated_test.py
index f9607d0db..e9fc50587 100644
--- a/tests/samplebinding/deprecated_test.py
+++ b/tests/samplebinding/deprecated_test.py
@@ -30,20 +30,10 @@ import unittest
from sample import ObjectType
class TestDeprecatedCall(unittest.TestCase):
- """
- def setUp(self):
- warnings.simplefilter("default")
-
- def testCallWithoutError(self):
- o = ObjectType()
- self.assertTrue(o.deprecatedFunction())
- """
-
def testCallWithError(self):
o = ObjectType()
- warnings.simplefilter("error")
+ warnings.simplefilter('error')
self.assertRaises(DeprecationWarning, o.deprecatedFunction)
if __name__ == '__main__':
unittest.main()
-