# Path: tests/fixtures/thief.py
# class Thief(object):
#     """Thief fake class"""
# 
#     def __init__(self, first_name, last_name):
#         """
#         Args:
#             first_name (str): thief first name
#             last_name (str): thief last name
#         """
#         self.first_name = first_name
#         self.last_name = last_name
# 
# Path: tests/fixtures/jewel.py
# class Jewel(object):
#     def __init__(self, name, carat):
#         self.name = name
#         self.carat = carat
# 
# Path: tests/fixtures/painting.py
# class Painting(object):
#     def __init__(self, name, author):
#         self.name = name
#         self.author = author


import pytest
from lupin import Mapper, Schema
from lupin.errors import MissingMapping, SchemaAlreadyRegistered, InvalidDocument, \
    InvalidPolymorphicType, SchemaNotRegistered
from tests.fixtures import Thief, Painting, Jewel
# coding: utf-8



@pytest.fixture
def mapper():
    return Mapper()


class TestRegister(object):
    def test_sets_the_default_schema(self, mapper, thief_schema, thief):

# Path: tests/fixtures/thief.py
# class Thief(object):
#     """Thief fake class"""
# 
#     def __init__(self, first_name, last_name):
#         """
#         Args:
#             first_name (str): thief first name
#             last_name (str): thief last name
#         """
#         self.first_name = first_name
#         self.last_name = last_name
# 
# Path: tests/fixtures/jewel.py
# class Jewel(object):
#     def __init__(self, name, carat):
#         self.name = name
#         self.carat = carat
# 
# Path: tests/fixtures/painting.py
# class Painting(object):
#     def __init__(self, name, author):
#         self.name = name
#         self.author = author


# Path: tests/lupin/test_mapper.py
import pytest
from lupin import Mapper, Schema
from lupin.errors import MissingMapping, SchemaAlreadyRegistered, InvalidDocument, \
    InvalidPolymorphicType, SchemaNotRegistered
from tests.fixtures import Thief, Painting, Jewel

# coding: utf-8



@pytest.fixture
def mapper():
    return Mapper()


class TestRegister(object):
    def test_sets_the_default_schema(self, mapper, thief_schema, thief):

        mapper.register(Thief, thief_schema)