# Path: tests/base.py
# class User:
#     SPECIES = "Homo sapiens"
# 
#     def __init__(
#         self,
#         name,
#         age=0,
#         id_=None,
#         homepage=None,
#         email=None,
#         registered=True,
#         time_registered=None,
#         birthdate=None,
#         birthtime=None,
#         balance=100,
#         sex="male",
#         employer=None,
#         various_data=None,
#     ):
#         self.name = name
#         self.age = age
#         # A naive datetime
#         self.created = dt.datetime(2013, 11, 10, 14, 20, 58)
#         # A TZ-aware datetime
#         self.updated = central.localize(
#             dt.datetime(2013, 11, 10, 14, 20, 58), is_dst=False
#         )
#         self.id = id_
#         self.homepage = homepage
#         self.email = email
#         self.balance = balance
#         self.registered = True
#         self.hair_colors = ["black", "brown", "blond", "redhead"]
#         self.sex_choices = ("male", "female")
#         self.finger_count = 10
#         self.uid = uuid.uuid1()
#         self.time_registered = time_registered or dt.time(1, 23, 45, 6789)
#         self.birthdate = birthdate or dt.date(2013, 1, 23)
#         self.birthtime = birthtime or dt.time(0, 1, 2, 3333)
#         self.activation_date = dt.date(2013, 12, 11)
#         self.sex = sex
#         self.employer = employer
#         self.relatives = []
#         self.various_data = various_data or {
#             "pets": ["cat", "dog"],
#             "address": "1600 Pennsylvania Ave\n" "Washington, DC 20006",
#         }
# 
#     @property
#     def since_created(self):
#         return dt.datetime(2013, 11, 24) - self.created
# 
#     def __repr__(self):
#         return f"<User {self.name}>"


from collections import OrderedDict
from marshmallow import fields, Schema, EXCLUDE
from tests.base import User
import datetime as dt
import pytest





class TestUnordered:
    class UnorderedSchema(Schema):
        name = fields.Str()
        email = fields.Str()

        class Meta:
            ordered = False

    def test_unordered_dump_returns_dict(self):
        schema = self.UnorderedSchema()

# Path: tests/base.py
# class User:
#     SPECIES = "Homo sapiens"
# 
#     def __init__(
#         self,
#         name,
#         age=0,
#         id_=None,
#         homepage=None,
#         email=None,
#         registered=True,
#         time_registered=None,
#         birthdate=None,
#         birthtime=None,
#         balance=100,
#         sex="male",
#         employer=None,
#         various_data=None,
#     ):
#         self.name = name
#         self.age = age
#         # A naive datetime
#         self.created = dt.datetime(2013, 11, 10, 14, 20, 58)
#         # A TZ-aware datetime
#         self.updated = central.localize(
#             dt.datetime(2013, 11, 10, 14, 20, 58), is_dst=False
#         )
#         self.id = id_
#         self.homepage = homepage
#         self.email = email
#         self.balance = balance
#         self.registered = True
#         self.hair_colors = ["black", "brown", "blond", "redhead"]
#         self.sex_choices = ("male", "female")
#         self.finger_count = 10
#         self.uid = uuid.uuid1()
#         self.time_registered = time_registered or dt.time(1, 23, 45, 6789)
#         self.birthdate = birthdate or dt.date(2013, 1, 23)
#         self.birthtime = birthtime or dt.time(0, 1, 2, 3333)
#         self.activation_date = dt.date(2013, 12, 11)
#         self.sex = sex
#         self.employer = employer
#         self.relatives = []
#         self.various_data = various_data or {
#             "pets": ["cat", "dog"],
#             "address": "1600 Pennsylvania Ave\n" "Washington, DC 20006",
#         }
# 
#     @property
#     def since_created(self):
#         return dt.datetime(2013, 11, 24) - self.created
# 
#     def __repr__(self):
#         return f"<User {self.name}>"


# Path: tests/test_options.py
from collections import OrderedDict
from marshmallow import fields, Schema, EXCLUDE
from tests.base import User
import datetime as dt
import pytest






class TestUnordered:
    class UnorderedSchema(Schema):
        name = fields.Str()
        email = fields.Str()

        class Meta:
            ordered = False

    def test_unordered_dump_returns_dict(self):
        schema = self.UnorderedSchema()

        u = User("steve", email="steve@steve.steve")