def test_remove_provisioning_component(self):
     pb.add_provisioning_component(self.ctx, self.port.id, resources.PORT,
                                   'e1')
     pb.add_provisioning_component(self.ctx, self.port.id, resources.PORT,
                                   'e2')
     self.assertTrue(
         pb.remove_provisioning_component(self.ctx, self.port.id,
                                          resources.PORT, 'e1'))
     self.assertFalse(self.provisioned.called)
     pb.provisioning_complete(self.ctx, self.port.id, resources.PORT,
                              'other')
     self.assertFalse(self.provisioned.called)
     pb.provisioning_complete(self.ctx, self.port.id, resources.PORT, 'e2')
     self.assertTrue(self.provisioned.called)
 def test_remove_provisioning_component(self):
     pb.add_provisioning_component(self.ctx, self.port.id, resources.PORT,
                                   'e1')
     pb.add_provisioning_component(self.ctx, self.port.id, resources.PORT,
                                   'e2')
     self.assertTrue(pb.remove_provisioning_component(
           self.ctx, self.port.id, resources.PORT, 'e1'))
     self.assertFalse(self.provisioned.called)
     pb.provisioning_complete(self.ctx, self.port.id,
                              resources.PORT, 'other')
     self.assertFalse(self.provisioned.called)
     pb.provisioning_complete(self.ctx, self.port.id,
                              resources.PORT, 'e2')
     self.assertTrue(self.provisioned.called)