              '/post-view/',
              data=None,
              content_type='application/json'
          )
          self.assertEqual(response.status_code, 200, response.content)
          self.assertEqual(response.data, {"flag": True})
  
  
  class TestAPIRequestFactory(TestCase):
      def test_csrf_exempt_by_default(self):
          """
 
</s> remove         self.assertEqual(response.data['active_session'], False)
 </s> add         assert response.data['active_session'] is False </s> remove         self.assertEqual(response.status_code, 403)
        self.assertEqual(response.data, expected)
 </s> add         assert response.status_code == 403
        assert response.data == expected </s> remove         self.assertEqual(response.status_code, 403)
        self.assertEqual(response.data, expected)
 </s> add         assert response.status_code == 403
        assert response.data == expected </s> remove         self.assertEqual(response.status_code, 200)
 </s> add         assert response.status_code == 200 </s> remove         self.assertEqual(response.status_code, 200)
 </s> add         assert response.status_code == 200
        assert response.status_code == 200
        assert response.data == {"flag": True}
              '/post-view/',
              data=None,
              content_type='application/json'
          )
        assert response.status_code == 200
        assert response.data == {"flag": True}
        assert response.status_code == 200
        assert response.data == {"flag": True}
  
  
  class TestAPIRequestFactory(TestCase):
      def test_csrf_exempt_by_default(self):
          """
keep keep keep keep replace replace keep keep keep keep keep
 converted testing test asserts to pytest (#4949)

* converted testing test asserts to pytest

* moved 3rd arg from test_empty_post_uses_default_boolean_value test assert 
tests/test_testing.py