QGIS/python/ext-libs/nose2/tests/functional/test_collect_plugin.py
2016-02-06 03:12:25 +01:00

20 lines
455 B
Python

import re
from nose2.tests._common import FunctionalTestCase
class CollectOnlyFunctionalTest(FunctionalTestCase):
def test_collect_tests_in_package(self):
self.assertTestRunOutputMatches(
self.runIn('scenario/tests_in_package', '-v', '--collect-only',
'--plugin=nose2.plugins.collect'),
stderr=EXPECT_LAYOUT1)
# expectations
EXPECT_LAYOUT1 = re.compile("""\
Ran 25 tests in \d.\d+s
OK""")