def it_raises_when_asked_for_autoshape_type_id_with_a_bad_prst(self): with pytest.raises(KeyError): AutoShapeType.id_from_prst('badPrst')
def it_knows_the_autoshape_type_id_for_each_prst_key(self): assert AutoShapeType.id_from_prst('rect') == MSO_SHAPE.RECTANGLE