# -*- coding: utf-8 -*-
import pytest
import odin


class MultiPartResource(odin.Resource):
    id = odin.IntegerField()
    code = odin.StringField()
    two_parts = odin.MultiPartField(('id', 'code'), separator=':')


class TestFields(object):
    def test_multipartfield__get_value(self):
        target = MultiPartResource(id=42, code='29A')

        assert '42:29A' == target.two_parts

    def test_multipartfield__unknown_fields(self):
        with pytest.raises(AttributeError) as result:
            class BadMultiPartResource(odin.Resource):
                id = odin.IntegerField()
                two_parts = odin.MultiPartField(('id', 'code'), separator=':')

        assert result.value.message.startswith("Attribute 'code' not found")

@@ -681,16 +681,20 @@
  assert 
+str(
 result.v
@@ -701,16 +701,9 @@
 alue
-.message
+)
 .sta

Fix test for python 3