def test_write():
    file_name = "some_file.json"
    content = "some_content"

    client = Mock()
    with patch.object(storage, "_client_for_env", return_value=client):
        storage.write(file_name, content)

    client.write.assert_called_with(file_name, content)