def METHOD_NAME(self):
    expected_message = (
        'Certificate for CA named "bad_ca" does not exist, please create it first.'
    )
    self.assertEqual(tls.create_csr(ca_name="bad_ca"), expected_message)