'Tests that 400 response is received if invalid JSON is sent.'

@patch.dict('django.conf.settings.FEATURES', {'ENABLE_EDXNOTES': True})
def test_edxnotes_visibility_invalid_json(self):

    enable_edxnotes_for_the_course(self.course, self.user.id)
    response = self.client.post(self.visibility_url, data='string', content_type='application/json')
    self.assertEqual(response.status_code, 400)
