blob: ed856aea2588622604490713c21188156e9fb048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import os
import unittest
from nose.plugins import PluginTester
support = os.path.join(os.path.dirname(__file__), 'support', 'issue513')
class TestPrintedTraceback(PluginTester, unittest.TestCase):
args = ['--where='+support]
activate = "-v"
def makeSuite(self):
# make PluginTester happy, because we don't specify suitepath, we
# have to implement this function
return None
def test_correct_exception_raised(self):
print
print '!' * 70
print str(self.output)
print '!' * 70
print
assert 'ordinal not in range(128)' in str(self.output)
assert 'FAILED (errors=1)' in str(self.output)
if __name__ == '__main__':
unittest.main()
|