Commit 269961b8 authored by chris's avatar chris

meetingpoll/tests: start testing views

parent fa558779
from django.core.urlresolvers import resolve
from django.test import TestCase
from django.test import TestCase, Client
from meetingpoll.views import new
class NewViewTest(TestCase):
def test_new_page_output(self):
client = Client()
response = client.get('/m/new/')
self.assertEqual(response.status_code, 200)
self.assertIn('<title>Create a meeting</title>', response.content)
self.assertTrue(response.content.startswith('<!DOCTYPE html>\n<html>'))
self.assertTrue(response.content.endswith('</html>\n'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment