Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
scvmm_client_py
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
nova
scvmm_client_py
Commits
7be7ebce
Commit
7be7ebce
authored
Jan 28, 2014
by
Sigmund Augdal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump version number for new api
parent
222be877
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
test_odata.py
scvmm_client/tests/test_odata.py
+19
-0
setup.py
setup.py
+1
-1
No files found.
scvmm_client/tests/test_odata.py
View file @
7be7ebce
...
...
@@ -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"
setup.py
View file @
7be7ebce
...
...
@@ -8,7 +8,7 @@ requires = [
]
setup
(
name
=
'scvmm-client-py'
,
version
=
'0.
2
'
,
version
=
'0.
3
'
,
description
=
''
,
author
=
''
,
author_email
=
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment