from django.test import TestCase

from models import Cupcake, Person


class ModelTestCase(TestCase):
    def setUp(self):
        self.cupcake = Cupcake.objects.create(
            name="Cardamom",
            owner=Person.objects.create(name="Bob"))

    def test_model(self):
        self.assertEqual(self.cupcake.name, "Cardamom")


class ViewTestCase(TestCase):
    def setUp(self):
        self.cupcake = Cupcake.objects.create(
            name="Cardamom",
            owner=Person.objects.create(name="Bob"))

    def test_app(self):
        response = self.client.get("/")
        self.assertContains(response, "Hey")

18cd29d662de036fd3404ca99b069a8a811826b2
<mask token>


class ViewTestCase(TestCase):

    def setUp(self):
        self.cupcake = Cupcake.objects.create(name='Cardamom', owner=Person
            .objects.create(name='Bob'))

    def test_app(self):
        response = self.client.get('/')
        self.assertContains(response, 'Hey')

<mask token>


class ModelTestCase(TestCase):
    <mask token>
    <mask token>


class ViewTestCase(TestCase):

    def setUp(self):
        self.cupcake = Cupcake.objects.create(name='Cardamom', owner=Person
            .objects.create(name='Bob'))

    def test_app(self):
        response = self.client.get('/')
        self.assertContains(response, 'Hey')

<mask token>


class ModelTestCase(TestCase):
    <mask token>

    def test_model(self):
        self.assertEqual(self.cupcake.name, 'Cardamom')


class ViewTestCase(TestCase):

    def setUp(self):
        self.cupcake = Cupcake.objects.create(name='Cardamom', owner=Person
            .objects.create(name='Bob'))

    def test_app(self):
        response = self.client.get('/')
        self.assertContains(response, 'Hey')

from django.test import TestCase
from models import Cupcake, Person


class ModelTestCase(TestCase):

    def setUp(self):
        self.cupcake = Cupcake.objects.create(name='Cardamom', owner=Person
            .objects.create(name='Bob'))

    def test_model(self):
        self.assertEqual(self.cupcake.name, 'Cardamom')


class ViewTestCase(TestCase):

    def setUp(self):
        self.cupcake = Cupcake.objects.create(name='Cardamom', owner=Person
            .objects.create(name='Bob'))

    def test_app(self):
        response = self.client.get('/')
        self.assertContains(response, 'Hey')

from django.test import TestCase

from models import Cupcake, Person


class ModelTestCase(TestCase):
    def setUp(self):
        self.cupcake = Cupcake.objects.create(
            name="Cardamom",
            owner=Person.objects.create(name="Bob"))

    def test_model(self):
        self.assertEqual(self.cupcake.name, "Cardamom")


class ViewTestCase(TestCase):
    def setUp(self):
        self.cupcake = Cupcake.objects.create(
            name="Cardamom",
            owner=Person.objects.create(name="Bob"))

    def test_app(self):
        response = self.client.get("/")
        self.assertContains(response, "Hey")
