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