def test_resolve_reference(self):
        mock_resource = MagicMock()
        ref = ResourceReference(mock_resource, self._setter_uuid,
                                self._device_port_spec_1)
        ref.resolve_reference('uuid-000')

        mock_resource.set_uuid.assert_called_with('uuid-000')
예제 #2
0
    def test_resolve_reference(self):
        mock_resource = MagicMock()
        ref = ResourceReference(mock_resource,
                                self._setter_uuid,
                                self._device_port_spec_1)
        ref.resolve_reference('uuid-000')

        mock_resource.set_uuid.assert_called_with('uuid-000')