Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
3fa5187a
Commit
3fa5187a
authored
Jul 17, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: remove copy pasted docstring
parent
f4c8c60e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
slapos/tests/slap.py
slapos/tests/slap.py
+1
-20
No files found.
slapos/tests/slap.py
View file @
3fa5187a
...
@@ -79,10 +79,6 @@ class TestSlap(SlapMixin):
...
@@ -79,10 +79,6 @@ class TestSlap(SlapMixin):
self
.
assertEquals
(
slap_instance
.
_connection_helper
.
slapgrid_uri
,
self
.
server_url
)
self
.
assertEquals
(
slap_instance
.
_connection_helper
.
slapgrid_uri
,
self
.
server_url
)
def
test_slap_initialisation_ipv6_and_port
(
self
):
def
test_slap_initialisation_ipv6_and_port
(
self
):
"""
Asserts that slap correctly understand master_url containing
ipv6 and adds brackets if not there.
"""
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
.
initializeConnection
(
"http://1234:1234:1234:1234:1:1:1:1:5000/foo/"
)
slap_instance
.
initializeConnection
(
"http://1234:1234:1234:1234:1:1:1:1:5000/foo/"
)
self
.
assertEqual
(
self
.
assertEqual
(
...
@@ -91,10 +87,6 @@ class TestSlap(SlapMixin):
...
@@ -91,10 +87,6 @@ class TestSlap(SlapMixin):
)
)
def
test_slap_initialisation_ipv6_without_port
(
self
):
def
test_slap_initialisation_ipv6_without_port
(
self
):
"""
Asserts that slap correctly understand master_url containing
ipv6 and adds brackets if not there.
"""
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
.
initializeConnection
(
"http://1234:1234:1234:1234:1:1:1:1/foo/"
)
slap_instance
.
initializeConnection
(
"http://1234:1234:1234:1234:1:1:1:1/foo/"
)
self
.
assertEqual
(
self
.
assertEqual
(
...
@@ -103,10 +95,6 @@ class TestSlap(SlapMixin):
...
@@ -103,10 +95,6 @@ class TestSlap(SlapMixin):
)
)
def
test_slap_initialisation_ipv6_with_bracket
(
self
):
def
test_slap_initialisation_ipv6_with_bracket
(
self
):
"""
Asserts that slap correctly understand master_url containing
ipv6 and adds brackets if not there.
"""
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
.
initializeConnection
(
"http://[1234:1234:1234:1234:1:1:1:1]:5000/foo/"
)
slap_instance
.
initializeConnection
(
"http://[1234:1234:1234:1234:1:1:1:1]:5000/foo/"
)
self
.
assertEqual
(
self
.
assertEqual
(
...
@@ -115,10 +103,6 @@ class TestSlap(SlapMixin):
...
@@ -115,10 +103,6 @@ class TestSlap(SlapMixin):
)
)
def
test_slap_initialisation_ipv4
(
self
):
def
test_slap_initialisation_ipv4
(
self
):
"""
Asserts that slap correctly understand master_url containing
ipv6 and adds brackets if not there.
"""
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
.
initializeConnection
(
"http://127.0.0.1:5000/foo/"
)
slap_instance
.
initializeConnection
(
"http://127.0.0.1:5000/foo/"
)
self
.
assertEqual
(
self
.
assertEqual
(
...
@@ -127,10 +111,7 @@ class TestSlap(SlapMixin):
...
@@ -127,10 +111,7 @@ class TestSlap(SlapMixin):
)
)
def
test_slap_initialisation_hostname
(
self
):
def
test_slap_initialisation_hostname
(
self
):
"""
# XXX this really opens a connection !
Asserts that slap correctly understand master_url containing
ipv6 and adds brackets if not there.
"""
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
=
slapos
.
slap
.
slap
()
slap_instance
.
initializeConnection
(
"http://foo.com:5000/foo/"
)
slap_instance
.
initializeConnection
(
"http://foo.com:5000/foo/"
)
self
.
assertEqual
(
self
.
assertEqual
(
...
...
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