def test__prepare_auth_v0():
    # Test for :func:`zpmlib.zpm._prepare_auth`, with version 0.0
    version = '0.0'
    args = None
    conn = mock.Mock()
    conn.url = 'http://example.com'

    expected = {
        'version': '0.0',
        'swiftUrl': 'http://example.com',
    }
    assert zpm._prepare_auth(version, args, conn) == expected