#NEWLINE# @ mock . patch . object ( flavors , 'extract_flavor' ) #NEWLINE# def test_create_vm_record_windows( self , mock_extract_flavor ) : #NEWLINE# #INDENT# instance = objects . Instance ( uuid = 'uuid123' , os_type = 'windows' ) #NEWLINE# with mock . patch . object ( mock_extract_flavor , 'get_flavor' ) as get : #NEWLINE# #INDENT# get . return_value = objects . Flavor . _from_db_object ( None , objects . Flavor ( ) , test_flavor . fake_flavor ) #NEWLINE# self . _test_create_vm_record ( mock_extract_flavor , instance , True )