#NEWLINE# def test_boot_and_show_server( self ) : #NEWLINE# #INDENT# server = fakes . FakeServer ( ) #NEWLINE# image = fakes . FakeImage ( ) #NEWLINE# flavor = fakes . FakeFlavor ( ) #NEWLINE# scenario = servers . NovaServers ( self . context ) #NEWLINE# scenario . _boot_server = mock . MagicMock ( return_value = server ) #NEWLINE# scenario . _show_server = mock . MagicMock ( ) #NEWLINE# scenario . boot_and_show_server ( image , flavor , fakearg = 'fakearg' ) #NEWLINE# scenario . _boot_server . assert_called_once_with ( server , flavor , fakearg = 'fakearg' ) #NEWLINE# scenario . _show_server . assert_called_once_with ( server )