import tensorflow as tf

        NotImplementedError, "log_prob is not implemented"):
      terrible_distribution.log_prob(1.)
    with self.assertRaisesRegexp(
        NotImplementedError, "cdf is not implemented"):
      terrible_distribution.cdf(1.)
    with self.assertRaisesRegexp(
        NotImplementedError, "log_cdf is not implemented"):
      terrible_distribution.log_cdf(1.)


if __name__ == "__main__":
  tf.test.main()
