awips2/pythonPackages/nose/unit_tests/test_lazy_suite.py
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

21 lines
498 B
Python
Executable file

import unittest
from nose.suite import LazySuite
from helpers import iter_compat
def gen():
for x in range(0, 10):
yield TestLazySuite.TC('test')
class TestLazySuite(unittest.TestCase):
class TC(unittest.TestCase):
def test(self):
pass
def test_basic_iteration(self):
ls = LazySuite(gen)
for t in iter_compat(ls):
assert isinstance(t, unittest.TestCase)
if __name__ == '__main__':
unittest.main()