class TestNoAuthentication(TestCase):
    def setUp(self):
        self.auth = NoAuthentication()

    def test_get_user(self):
        response = self.auth.get_user(HttpRequest())
        self.assertEqual(response, None)

    def test_is_authenticated(self):
        response = self.auth.is_authenticated(HttpRequest())
        self.assertTrue(response)
 def setUp(self):
     self.auth = NoAuthentication()