# Path: warp/users/tests/factories.py
# class PresentationFactory(factory.django.DjangoModelFactory):
# 
#     class Meta:
#         model = Presentation
# 
#     subject = 'This is about Jelly'
#     author = SubFactory(UserFactory)
#     views = 532345


from django.core.urlresolvers import reverse
from test_plus import TestCase
from warp.users.tests.factories import PresentationFactory



class PresentationListTest(TestCase):
    def setUp(self):
        for _ in range(0, 20):
            self.presentation = PresentationFactory()

    def test_get_presentation_list_page(self):
        self.get_check_200(reverse('presentation:list'))

# Path: warp/users/tests/factories.py
# class PresentationFactory(factory.django.DjangoModelFactory):
# 
#     class Meta:
#         model = Presentation
# 
#     subject = 'This is about Jelly'
#     author = SubFactory(UserFactory)
#     views = 532345


# Path: presentation/tests.py
from django.core.urlresolvers import reverse
from test_plus import TestCase
from warp.users.tests.factories import PresentationFactory




class PresentationListTest(TestCase):
    def setUp(self):
        for _ in range(0, 20):
            self.presentation = PresentationFactory()

    def test_get_presentation_list_page(self):
        self.get_check_200(reverse('presentation:list'))

        self.assertResponseContains(PresentationFactory.subject, html=False)