#NEWLINE# def test_create_caseversion( self ) : #NEWLINE# #INDENT# 'Successful import creates a caseversion with expected values.' #NEWLINE# self . import_data ( { #NEWLINE# #INDENT# 'cases' : [ { #NEWLINE# #INDENT# 'name' : 'Foo' , #NEWLINE# 'steps' : [ { #NEWLINE# #INDENT# 'instruction' : 'do this' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# cv = self . model . CaseVersion . objects . get ( ) #NEWLINE# self . assertEqual ( cv . name , 'Foo' ) #NEWLINE# self . assertEqual ( cv . productversion , cv . pv ) #NEWLINE# self . assertEqual ( cv . case . product , self . pv . product )