#NEWLINE# def test_create_caseversion_existing_suite_different_case( self ) : #NEWLINE# #INDENT# 'A case that uses an existing suite with different case.' #NEWLINE# suite = self . model . Suite . objects . create ( name = 'foosuite' , product = self . pv . product ) #NEWLINE# result = self . import_data ( { #NEWLINE# #INDENT# 'cases' : [ { #NEWLINE# #INDENT# 'name' : 'Foo' , #NEWLINE# 'steps' : [ { #NEWLINE# #INDENT# 'instruction' : 'do this' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'suites' : [ 'FooSuite' ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# cv = self . model . CaseVersion . objects . get ( ) #NEWLINE# self . assertEqual ( cv . case . suites . get ( ) , suite ) #NEWLINE# self . assertEqual ( suite . num_cases , 1 ) #NEWLINE# self . assertEqual ( result . num_suites , 0 )