def METHOD_NAME(self):
    with self.assertRaises(ValueError) as error:
        sign_message(1234, "message")
    self.assertEqual(
        "1234 is not in available list of networks.",
        str(error.exception),
    )