#NEWLINE# def test_source_suite( self ) : #NEWLINE# #INDENT# 'Sets source suites for each runcaseversion.' #NEWLINE# envs = self . F . EnvironmentFactory . create_set ( [ 'os' ] , [ 'Atari' ] ) #NEWLINE# pv = self . F . ProductVersionFactory ( environments = envs ) #NEWLINE# tc = self . F . CaseFactory . create ( product = pv . product ) #NEWLINE# self . F . CaseVersionFactory . create ( case = tc , productversion = pv , status = 'active' ) #NEWLINE# ts = self . F . SuiteFactory . create ( product = pv . product , status = 'active' ) #NEWLINE# self . F . SuiteCaseFactory . create ( suite = r , case = tc ) #NEWLINE# r = self . F . RunFactory . create ( productversion = pv , environments = envs ) #NEWLINE# self . F . RunSuiteFactory . create ( suite = ts , run = r ) #NEWLINE# r . activate ( ) #NEWLINE# rcv = r . runcaseversions . get ( ) #NEWLINE# self . assertEqual ( self . suites_for ( r , self . model . RunCaseVersion . objects . get ( ) , '{% for suite in suites %}{{ suite.id }} {% endfor %}' ) , '{0} ' . format ( ts . id ) )