<s> """<STR_LIT>""" <EOL> import unittest <EOL> from pyqcy import * <EOL> import os <EOL> class Integration ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> class Sorting ( TestCase ) : <EOL> @ qc ( tests = <NUM_LIT:1> ) <EOL> def sort_preserves_length ( l = list_ ( of = int , max_length = <NUM_LIT> ) ) : <EOL> assert len ( l ) == len ( list ( sorted ( l ) ) ) <EOL> @ qc ( tests = <NUM_LIT:1> ) <EOL> def sort_finds_minimum ( <EOL> l = list_ ( of = int , min_length = <NUM_LIT:1> , max_length = <NUM_LIT> ) <EOL> ) : <EOL> assert min ( l ) == list ( sorted ( l ) ) [ <NUM_LIT:0> ] <EOL> def setUp ( self ) : <EOL> loader = unittest . TestLoader ( ) <EOL> self . qc_suite = loader . loadTestsFromTestCase ( Integration . Sorting ) <EOL> def test_running_testcase ( self ) : <EOL> results = unittest . TextTestRunner ( <EOL> stream = open ( os . devnull , '<STR_LIT:w>' ) , <EOL> verbosity = <NUM_LIT:0> ) . run ( self . qc_suite ) <EOL> assert results . wasSuccessful ( ) <EOL> def test_property_names_in_test_description ( self ) : <EOL> from pyqcy . properties import Property <EOL> test_descriptions = set ( tm . _testMethodDoc <EOL> for tm in self . qc_suite . _tests ) <EOL> assert all ( "<STR_LIT>" in td for td in test_descriptions ) <EOL> assert all ( any ( k in td for td in test_descriptions ) <EOL> for ( k , v ) in Integration . Sorting . __dict__ . iteritems ( ) <EOL> if isinstance ( v , Property ) ) </s>
