Ejemplo n.º 1
0
    def fail_postpone_expiration_date(self):
        tip_expiring = yield tip.get_internaltip_receiver(
            self.receiver1_desc['receiver_gus'], self.rtip1_id)

        try:
            yield tip.postpone_expiration_date(
                    self.receiver2_desc['receiver_gus'],
                    self.rtip2_id)
        except errors.ExtendTipLifeNotEnabled:
            self.assertTrue(True)
        except Exception, e:
            self.assertTrue(False)
            raise e
Ejemplo n.º 2
0
    def success_postpone_expiration_date(self):
        """
        Tests with receiver1 and update with receiver2 is equal
        to use the the same receiver
        """
        tip_expiring = yield tip.get_internaltip_receiver(
            self.receiver1_desc['receiver_gus'], self.rtip1_id)

        yield tip.postpone_expiration_date(
                    self.receiver2_desc['receiver_gus'],
                    self.rtip2_id)

        tip_extended = yield tip.get_internaltip_receiver(
            self.receiver1_desc['receiver_gus'], self.rtip1_id)

        self.assertNotEqual(tip_expiring['expiration_date'], tip_extended['expiration_date'])