Commit 7be7ebce authored by Sigmund Augdal's avatar Sigmund Augdal

Bump version number for new api

parent 222be877
......@@ -50,3 +50,22 @@ class TestODataClient(object):
def test_format_url(self):
""" Test the format url call """
assert self.client._format_url("foo") == "http://someurl/Microsoft.Management.Odata.svc/foo"
def test_format_url_backwards_compatible(self):
""" Test the format url call if an old style baseurl is given """
client = odata.Client("http://someurl/Microsoft.Management.Odata.svc",
"myusername", "mytopsecretpassword")
assert client._format_url("foo") == "http://someurl/Microsoft.Management.Odata.svc/foo"
def test_format_url_subscription(self):
""" Test the format url call if a subscription is given """
client = odata.Client("http://someurl/Microsoft.Management.Odata.svc",
"myusername", "mytopsecretpassword",
"3407291f-5889-4374-a595-37a4559220a9")
assert client._format_url("foo") == "http://someurl/3407291f-5889-4374-a595-37a4559220a9/Microsoft.Management.Odata.svc/foo"
def test_format_url_trailing_slash(self):
""" Test the format url call if a baseurl with trailing slash is given """
client = odata.Client("http://someurl/",
"myusername", "mytopsecretpassword")
assert client._format_url("foo") == "http://someurl/Microsoft.Management.Odata.svc/foo"
......@@ -8,7 +8,7 @@ requires = [
]
setup(name='scvmm-client-py',
version='0.2',
version='0.3',
description='',
author='',
author_email='',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment