# Path: td_biblio/factories.py
# class EntryFactory(DjangoModelFactory):
# 
#     type = factory.fuzzy.FuzzyChoice(ENTRY_TYPES_RAW_CHOICES)
#     title = factory.Sequence(lambda n: "Entry title %s" % n)
#     journal = factory.SubFactory(JournalFactory)
#     publication_date = factory.fuzzy.FuzzyDate(datetime.date(1942, 1, 1))
#     volume = factory.fuzzy.FuzzyInteger(1, 10)
#     number = factory.fuzzy.FuzzyInteger(1, 50)
#     pages = FuzzyPages(1, 2000)
# 
#     class Meta:
#         model = models.Entry


import datetime
import pytest
    from django.core.urlresolvers import reverse
    from django.urls import reverse
from django.test import TestCase
from ..factories import EntryFactory
# -*- coding: utf-8 -*-

try:
except ImportError:




@pytest.mark.django_db
class PublicationDateFilterTests(TestCase):
    """Tests for the publication_date filter"""

    def setUp(self):
        """Setup a publication database"""
        # Standard entries
        for i in range(4):
            EntryFactory(is_partial_publication_date=False)

        # Special entry with an incomplete publication date

# Path: td_biblio/factories.py
# class EntryFactory(DjangoModelFactory):
# 
#     type = factory.fuzzy.FuzzyChoice(ENTRY_TYPES_RAW_CHOICES)
#     title = factory.Sequence(lambda n: "Entry title %s" % n)
#     journal = factory.SubFactory(JournalFactory)
#     publication_date = factory.fuzzy.FuzzyDate(datetime.date(1942, 1, 1))
#     volume = factory.fuzzy.FuzzyInteger(1, 10)
#     number = factory.fuzzy.FuzzyInteger(1, 50)
#     pages = FuzzyPages(1, 2000)
# 
#     class Meta:
#         model = models.Entry


# Path: td_biblio/tests/test_templatetags.py
import datetime
import pytest
    from django.core.urlresolvers import reverse
    from django.urls import reverse
from django.test import TestCase
from ..factories import EntryFactory

# -*- coding: utf-8 -*-

try:
except ImportError:




@pytest.mark.django_db
class PublicationDateFilterTests(TestCase):
    """Tests for the publication_date filter"""

    def setUp(self):
        """Setup a publication database"""
        # Standard entries
        for i in range(4):
            EntryFactory(is_partial_publication_date=False)

        # Special entry with an incomplete publication date

        EntryFactory(