# Path: server/adventures/models/publisher.py
# class Publisher(models.Model, TimestampMixin, DescriptionNotesMixin):
#     """
#     Model for the publisher.
#     """
# 
#     name = models.CharField(max_length=128)


from django.test import TestCase
from ..publisher import Publisher
# pylint: disable=missing-docstring


class PublisherTestCase(TestCase):
    def test_create_publisher(self):
        wotc = Publisher.objects.create(name='Wizards of the Coast')

# Path: server/adventures/models/publisher.py
# class Publisher(models.Model, TimestampMixin, DescriptionNotesMixin):
#     """
#     Model for the publisher.
#     """
# 
#     name = models.CharField(max_length=128)


# Path: server/adventures/models/tests/publisher.py
from django.test import TestCase
from ..publisher import Publisher

# pylint: disable=missing-docstring


class PublisherTestCase(TestCase):
    def test_create_publisher(self):
        wotc = Publisher.objects.create(name='Wizards of the Coast')

        self.assertEqual(Publisher.objects.first(), wotc)