To test the status code of 500, I was thinking that we can use something like line 281: self.assertEqual(response.status_code, 200, "Incorrect status code on success"), where we are just checking for 500.