bambu-buffer/bambu_buffer/tests.py
2014-05-03 22:37:15 +01:00

12 lines
351 B
Python

from django.test import TestCase
from django.test.client import RequestFactory
from bambu_buffer.views import auth
class AuthorisationTestCase(TestCase):
def setUp(self):
self.client = RequestFactory()
def test_authorisation(self):
request = self.client.get('/buffer/auth/')
response = auth(request)
response