@mock.patch('tethys_services.models.WebProcessingService.objects.get', return_value=True)
def test_get_service_from_name_wps(self, mock_get):
    self.assertEqual(install_commands.get_service_from_name('nonexisting').get('service_type'), 'wps')
    mock_get.assert_called_with(name='nonexisting')
@mock.patch('tethys_services.models.WebProcessingService.objects.get', return_value=True)
def test_get_service_from_name_wps(self, mock_get):
    self.assertEqual(install_commands.get_service_from_name('nonexisting').get('service_type'), 'wps')
    mock_get.assert_called_with(name='nonexisting')