def test_repr(sct, pixel_ratio):
    box = {"top": 0, "left": 0, "width": 10, "height": 10}
    expected_box = {
        "top": 0,
        "left": 0,
        "width": 10 * pixel_ratio,
        "height": 10 * pixel_ratio,
    }
    img = sct.grab(box)
    ref = ScreenShot(bytearray(b"42"), expected_box)
    assert repr(img) == repr(ref)
def test_repr(sct):
    box = {"top": 0, "left": 0, "width": 10, "height": 10}
    img = sct.grab(box)
    ref = ScreenShot(bytearray(b"42"), box)
    assert repr(img) == repr(ref)
def test_repr(sct):
    box = {'top': 0, 'left': 0, 'width': 10, 'height': 10}
    img = sct.grab(box)
    ref = ScreenShot(bytearray(b'42'), box)
    assert repr(img) == repr(ref)