def METHOD_NAME(self, mock_stdout):
    main(
        [
            "-k",
            "MY-SECURITY-KEY",
            "-w",
            "200",
            "-e",
            "300",
            "myserver.com/myimg.jpg",
        ]
    )
    expect(mock_stdout.getvalue()).to_equal(
        "URL:\n/G_dykuWBGyEil5JnNh9cBke0Ajo=/200x300/myserver.com/myimg.jpg\n"
    )