def METHOD_NAME(self):
    with self.assertRaises(InvalidStatusCode) as raised:
        self.start_client(extra_headers={"Authorization": "Digest ..."})
    self.assertEqual(raised.exception.status_code, 401)