@@ -0,0 +1,1268 @@
+%22%22%22%0ATest that the templates we need are here%0A%22%22%22%0Afrom django.contrib.auth.models import User%0Afrom django.test import TestCase%0A%0Afrom opat import OpatPlugin%0A%0Aclass FlowTemplatesTestCase(TestCase):%0A%0A    def setUp(self):%0A        self.user = User.objects.create(username='testuser')%0A        self.user.set_password('password')%0A        self.user.save()%0A        self.flows = OpatPlugin().flows()%0A%0A    def test_enter_template(self):%0A        self.client.login(username=self.user.username, password='password')%0A        response = self.client.get(self.flows%5B'opat'%5D%5B'default'%5D%5B'enter'%5D%5B'template'%5D)%0A        self.assertEqual(200, response.status_code)%0A%0A    def test_enter_template_unauthenticated(self):%0A        response = self.client.get(self.flows%5B'opat'%5D%5B'default'%5D%5B'enter'%5D%5B'template'%5D)%0A        self.assertEqual(302, response.status_code)%0A%0A    def test_exit_template(self):%0A        self.client.login(username=self.user.username, password='password')%0A        response = self.client.get(self.flows%5B'opat'%5D%5B'default'%5D%5B'exit'%5D%5B'template'%5D)%0A        self.assertEqual(200, response.status_code)%0A%0A    def test_exit_template_unauthenticated(self):%0A        response = self.client.get(self.flows%5B'opat'%5D%5B'default'%5D%5B'exit'%5D%5B'template'%5D)%0A        self.assertEqual(302, response.status_code)%0A

Add template tests