'has_delete_permission returns True for users who can delete objects and
False for users who can\'t.'

def test_has_delete_permission(self):

    ma = ModelAdmin(Band, AdminSite())
    request = MockRequest()
    request.user = self.MockAddUser()
    self.assertFalse(ma.has_delete_permission(request))
    request.user = self.MockChangeUser()
    self.assertFalse(ma.has_delete_permission(request))
    request.user = self.MockDeleteUser()
    self.assertTrue(ma.has_delete_permission(request))
