# Path: premis_event_service/models.py
# AGENT_TYPE_CHOICES = [
#     ('Personal', 'Personal'),
#     ('Organization', 'Organization'),
#     ('Event', 'Event'),
#     ('Software', 'Software'),
# ]
# class Agent(models.Model):
#     class Meta:
# class LinkObject(models.Model):
# class EventManager(models.Manager):
# class Event(models.Model):
#     class Meta:
# class EventLinkObject(models.Model):
#     class Meta:
#     def __str__(self):
#     def get_absolute_url(self):
#     def __str__(self):
#     def search(self, **kwargs):
#     def searchunfilt(self, max_ordinal=None):
#     def __str__(self):
#     def link_objects_string(self):
#     def is_good(self):


from django.utils import timezone
from premis_event_service import models
from . import factories
import pytest
            event_outcome='http://example.com/#success')

        assert event.is_good() is True

    def test_is_good_is_false(self):
        event = factories.EventFactory.build(
            event_outcome='http://example.com/#not-success')

        assert event.is_good() is False


@pytest.mark.django_db
class TestEventManager:

    def results_has_event(self, results, event):
        """True if the event is the only Event in the response context."""
        if not len(results) == 1:
            return False

        result = results[0]
        if not result.event_identifier == event.event_identifier:
            return False
        return True

    @pytest.fixture
    def manager(self):
        """Fixture to provide the EventManager object with the
        correct setup.
        """
        manager = models.EventManager()

# Path: premis_event_service/models.py
# AGENT_TYPE_CHOICES = [
#     ('Personal', 'Personal'),
#     ('Organization', 'Organization'),
#     ('Event', 'Event'),
#     ('Software', 'Software'),
# ]
# class Agent(models.Model):
#     class Meta:
# class LinkObject(models.Model):
# class EventManager(models.Manager):
# class Event(models.Model):
#     class Meta:
# class EventLinkObject(models.Model):
#     class Meta:
#     def __str__(self):
#     def get_absolute_url(self):
#     def __str__(self):
#     def search(self, **kwargs):
#     def searchunfilt(self, max_ordinal=None):
#     def __str__(self):
#     def link_objects_string(self):
#     def is_good(self):


# Path: tests/test_models.py
from django.utils import timezone
from premis_event_service import models
from . import factories
import pytest

            event_outcome='http://example.com/#success')

        assert event.is_good() is True

    def test_is_good_is_false(self):
        event = factories.EventFactory.build(
            event_outcome='http://example.com/#not-success')

        assert event.is_good() is False


@pytest.mark.django_db
class TestEventManager:

    def results_has_event(self, results, event):
        """True if the event is the only Event in the response context."""
        if not len(results) == 1:
            return False

        result = results[0]
        if not result.event_identifier == event.event_identifier:
            return False
        return True

    @pytest.fixture
    def manager(self):
        """Fixture to provide the EventManager object with the
        correct setup.
        """
        manager = models.EventManager()

        manager.model = models.Event