Exemplo n.º 1
0
class FacebookBackendTest(TestCase):
    def setUp(self):
        self.factory = RequestFactory()
        self.backend = FacebookBackend()

    def test_get_session_access_denied(self):
        with self.assertRaises(PermissionDeniedException):
            self.backend.get_session(
                facebook=self.factory.get('/', data={'error': 'access_denied'}))
Exemplo n.º 2
0
 def setUp(self):
     self.factory = RequestFactory()
     self.backend = FacebookBackend()