def delete_group(self, groupname): secClient1 = SecurityClient(base_url, username1, password1) try: secClient1.delete_group(groupname) newGroup1 = secClient1.find_groups(groupname) if len(newGroup1) == 0: print "group %s deleted" % groupname else: message = "group %s not deleted" % groupname raise AssertionError(message) except Exception, exception: message = "group %s not deleted" % groupname raise AssertionError(message)
def delete_group_no_check(self, groupname): secClient1 = SecurityClient(base_url, username1, password1) try: secClient1.delete_group(groupname) except Exception, exception: print "Could not find '%s' group" % groupname