<gh_stars>0
from django.test import TestCase
from core import models


class ModelTest(TestCase):
    """Test the models"""

    def test_deliver_str(self):
        """Test the deliver string representation"""
        deliver = models.Deliver.objects.create(
            start="2018-09-01T10:00:00Z",
            end="2018-09-01T10:00:00Z",
            label="Event one",
            category="blue"
        )

        self.assertEqual(str(deliver), deliver.label)
