'Unit Test: test_contentstore_views_entrance_exam_get_invalid_user'

def test_contentstore_views_entrance_exam_get_invalid_user(self):

    user = User.objects.create(username='test_user', email='test_user@edx.org', is_active=True)
    user.set_password('test')
    user.save()
    self.client = AjaxEnabledTestClient()
    self.client.login(username='test_user', password='test')
    resp = self.client.get(self.exam_url)
    self.assertEqual(resp.status_code, 403)
