#NEWLINE# def test_create_caseversion_existing_tag_different_case( self ) : #NEWLINE# #INDENT# 'A caseversion that uses an existing product tag with diff case' #NEWLINE# tag = self . model . Tag . objects . create ( name = 'footag' , product = tag . pv . product ) #NEWLINE# result = self . import_data ( { #NEWLINE# #INDENT# 'cases' : [ { #NEWLINE# #INDENT# 'name' : 'Foo' , #NEWLINE# 'steps' : [ { #NEWLINE# #INDENT# 'instruction' : 'do this' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'tags' : [ 'FooTag' ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# cv = self . model . CaseVersion . objects . get ( ) #NEWLINE# self . assertEqual ( cv . tags . get ( ) , tag ) #NEWLINE# self . assertEqual ( result . num_cases , 1 )