- cm.open.assert_called_with("file1.txt", "w")
- cm.save_new.assert_called_with(name="Downloaded from http://example.com/download?fn=/file1.txt",
+ cm.open.assert_called_with("file1.txt", "wb")
+ cm.save_new.assert_called_with(name="Downloaded from http%3A%2F%2Fexample.com%2Fdownload%3Ffn%3D%2Ffile1.txt",