From 758529d7dda30fda71161d396f770ec3279727ba Mon Sep 17 00:00:00 2001 From: Rebeccah Date: Fri, 27 Sep 2019 15:27:14 -0400 Subject: [PATCH] added in unit test for org admin deleting user --- awx/main/tests/functional/test_rbac_user.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/awx/main/tests/functional/test_rbac_user.py b/awx/main/tests/functional/test_rbac_user.py index c161a79c2f..b5ad2c04b7 100644 --- a/awx/main/tests/functional/test_rbac_user.py +++ b/awx/main/tests/functional/test_rbac_user.py @@ -150,3 +150,9 @@ def test_org_admin_edit_sys_auditor(org_admin, alice, organization): organization.member_role.members.add(alice) access = UserAccess(org_admin) assert not access.can_change(obj=alice, data=dict(is_system_auditor='true')) + + +@pytest.mark.django_db +def test_org_admin_can_delete_user(org_admin, alice): + access = UserAccess(org_admin) + assert access.can_delete(alice) \ No newline at end of file