s = p2.__str__() s2 = '''pidgeot 83 80 75 70 70 normal flying wrap horn-attack self-destruct egg-bomb''' print("Instructor:") print(s2) print("Student:") print(s) # kludge to compare multi-line strings -- it wasn't working in Mimir s2_L = s2.split("\n") s_L = s.split("\n") for i in range(3): assert s2_L[i].strip() == s_L[i].strip() s = p2.get_name() assert s == 'pidgeot' s = p2.get_element1() assert s == 'normal' s = p2.get_element2() assert s == 'flying' i = p2.get_hp() assert i == 83 i = p2.get_patt() assert i == 80 i = p2.get_pdef() assert i == 75 i = p2.get_satt() assert i == 70 i = p2.get_sdef() assert i == 70 #check move list M = p2.get_moves()