"""test_product_physical_packaging.py. Tests the logic for product_physical_packaging. """ from unittest.mock import MagicMock from oto import response from ows_product_physical.logic import product_physical_packaging from ows_product_physical.models import persister def test_get_packaging(monkeypatch): """Test get packaging options success.""" monkeypatch.setattr( persister, 'get_product_physical_packaging', value=MagicMock( return_value=response.Response())) product_physical_packaging.get() assert persister.get_product_physical_packaging.called