def testInvalidPower(self):
    invalid_powers = [(- 0.02), 0.5, (- 2.0), 0.99, 1.0]
    for power in invalid_powers:
        with self.assertRaisesOpError('Condition x > y'):
            zipf = tfd.Zipf(power=power, validate_args=True)
            self.evaluate(zipf.power)
def testInvalidPower(self):
    invalid_powers = [(- 0.02), 0.5, (- 2.0), 0.99, 1.0]
    for power in invalid_powers:
        with self.assertRaisesOpError('Condition x > y'):
            zipf = tfd.Zipf(power=power, validate_args=True)
            self.evaluate(zipf.power)