def isA(citem, testCategory):
    """
    test whether testCategory is one of the categories
    associated with citem
    """
    try:
        return testCategory.lower().strip() in citem.category
    except:
        for tc in testCategory:
            if tc.lower().strip() in citem.category:
                return True
        return False