allcases = x12.findall('.//testcase')
cases = [c for c in allcases if c.get('classname') == 'TestOne' and c.get(
    'name') == 'VHDL_BUILD_Passthrough']
Find occurrence using multiple attributes in ElementTree/Python