Exemplo n.º 1
0
 def test_inventory_friend_cancel(self, inventory, admin_user, inv_updater):
     inventory_update = InventoryUpdate(inventory_source=InventorySource(
         name=inventory.name, inventory=inventory, source='gce'),
                                        created_by=admin_user)
     access = InventoryUpdateAccess(inv_updater)
     assert not access.can_cancel(inventory_update)
Exemplo n.º 2
0
def test_inventory_update_org_admin(inventory_update, org_admin):
    access = InventoryUpdateAccess(org_admin)
    assert access.can_delete(inventory_update)