2016-09-18 22:14:24 +02:00
|
|
|
from openslides.topics.models import Topic
|
2015-06-16 10:37:23 +02:00
|
|
|
from openslides.utils.test import TestCase
|
2015-03-29 14:42:27 +02:00
|
|
|
|
|
|
|
|
2015-06-25 09:53:55 +02:00
|
|
|
class TestAgendaPDF(TestCase):
|
|
|
|
def test_get(self):
|
|
|
|
"""
|
|
|
|
Tests that a requst on the pdf-page returns with statuscode 200.
|
|
|
|
"""
|
2016-09-18 22:14:24 +02:00
|
|
|
Topic.objects.create(title='item1')
|
2015-06-25 09:53:55 +02:00
|
|
|
self.client.login(username='admin', password='admin')
|
|
|
|
|
|
|
|
response = self.client.get('/agenda/print/')
|
|
|
|
|
|
|
|
self.assertEqual(response.status_code, 200)
|