from django.test import TestCase
from .models import Event


class EventModel(TestCase):

    def test_name(self):
        event = Event(title='First event')
        self.assertIs(event.title, 'First event')

    def test_default_fields(self):
        event = Event(title='Event')
        self.assertIs(event.capacity, 0)
        self.assertIs(event.title, 'Event')
        self.assertEqual(event.place, 'event place')
        self.assertEqual(event.topic, 'event topic')

9d7dfb569882f127e405013d9ab61a365e4f3479
<mask token>

<mask token>


class EventModel(TestCase):

    def test_name(self):
        event = Event(title='First event')
        self.assertIs(event.title, 'First event')
    <mask token>

<mask token>


class EventModel(TestCase):

    def test_name(self):
        event = Event(title='First event')
        self.assertIs(event.title, 'First event')

    def test_default_fields(self):
        event = Event(title='Event')
        self.assertIs(event.capacity, 0)
        self.assertIs(event.title, 'Event')
        self.assertEqual(event.place, 'event place')
        self.assertEqual(event.topic, 'event topic')

from django.test import TestCase
from .models import Event


class EventModel(TestCase):

    def test_name(self):
        event = Event(title='First event')
        self.assertIs(event.title, 'First event')

    def test_default_fields(self):
        event = Event(title='Event')
        self.assertIs(event.capacity, 0)
        self.assertIs(event.title, 'Event')
        self.assertEqual(event.place, 'event place')
        self.assertEqual(event.topic, 'event topic')
