'Ensures that the \'alive\' condition works in the Cond ops.'

def testParseUntilNotAlive(self):

    with self.test_session(graph=tf.Graph()) as sess:
        t = self.MakeGraph(batch_size=3, beam_size=2, max_steps=5).training
        sess.run(t['inits'])
        for i in range(5):
            logging.info('run    %d', i)
            tf_alive = t['alive'].eval()
            self.assertFalse(any(tf_alive))
