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


from django.test import TestCase
from ..edition import Edition
# pylint: disable=missing-docstring


class EditionTestCase(TestCase):
    def test_create_edition(self):
        odandd = Edition.objects.create(name='OD&D')
        self.assertEqual(Edition.objects.first(), odandd)

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


# Path: server/adventures/models/tests/edition.py
from django.test import TestCase
from ..edition import Edition

# pylint: disable=missing-docstring


class EditionTestCase(TestCase):
    def test_create_edition(self):
        odandd = Edition.objects.create(name='OD&D')
        self.assertEqual(Edition.objects.first(), odandd)

        self.assertEqual(Edition.objects.count(), 1)