Files
Ilya.Kazakevich 56e741a29a PY-23856: Support tests with docstring and spaces in target
* Targets are trimmed
* When unittest reports test with docstring it should be part of name, but not location
2017-04-21 19:09:40 +03:00

11 lines
279 B
Python

from unittest import TestCase
class SomeTestCase(TestCase):
def testSomething(self):
""" Only with docstring test is parsed with extra space"""
self.assertEqual(1 + 1, 2)
def testSomethingBad(self):
"""Fail"""
self.assertEqual(1 + 1, 3)