# Path: tests/project/models.py
# class Parent(TimeStampedModel):
#     name = models.CharField(max_length=255)
#     objects = Manager.from_queryset(ExtendedQuerySet)()
# 
#     @property
#     def attribute_error(self) -> NoReturn:
#         raise AttributeError()
# 
#     @property
#     def version(self) -> str:
#         return str(self.pk) + ":" + str(self.date_modified)


from functools import partial
from django.urls import reverse
from django.utils.http import http_date
from rest_framework import status
from rest_framework.test import APITestCase
from tests.project.models import Parent




class TestAllowIfUnmodifiedSince(APITestCase):
    url = partial(reverse, "if-unmodified-detail")

    def test_returns_bad_request_for_missing_header(self):

# Path: tests/project/models.py
# class Parent(TimeStampedModel):
#     name = models.CharField(max_length=255)
#     objects = Manager.from_queryset(ExtendedQuerySet)()
# 
#     @property
#     def attribute_error(self) -> NoReturn:
#         raise AttributeError()
# 
#     @property
#     def version(self) -> str:
#         return str(self.pk) + ":" + str(self.date_modified)


# Path: tests/tests/drf/test_fenced_api.py
from functools import partial
from django.urls import reverse
from django.utils.http import http_date
from rest_framework import status
from rest_framework.test import APITestCase
from tests.project.models import Parent





class TestAllowIfUnmodifiedSince(APITestCase):
    url = partial(reverse, "if-unmodified-detail")

    def test_returns_bad_request_for_missing_header(self):

        item = Parent.objects.create()