結果 : python test if class has attribute