def test_animated_Bitmap_str(animated_png, hotspot) -> None: """Testing Bitmap class ``__str__`` datamethod for **animated png**.""" bmp = Bitmap(animated_png, hotspot) assert ( bmp.__str__() == f"Bitmap(grouped_png={animated_png}, key={animated_png[0].stem.rsplit('-',1)[0]}, animated=True, size=(20, 20), width=20, height=20, x_hot={hotspot[0]}, y_hot={hotspot[1]})" )
def test_static_Bitmap_str(static_png, hotspot) -> None: """Testing Bitmap class ``__str__`` datamethod for **static png**.""" bmp = Bitmap(static_png, hotspot) assert ( bmp.__str__() == f"Bitmap(png={static_png}, key={static_png.stem}, animated=False, size=(20, 20), width=20, height=20, x_hot={hotspot[0]}, y_hot={hotspot[1]})" )