Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Commits
3bf87114
Commit
3bf87114
authored
Mar 16, 2022
by
HongzheWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/recipe: add test for urlparse
parent
4fe03b68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
slapos/test/recipe/test_urlparse.py
slapos/test/recipe/test_urlparse.py
+21
-0
No files found.
slapos/test/recipe/test_urlparse.py
0 → 100755
View file @
3bf87114
import
unittest
import
zc.buildout.testing
class
UrlparseTest
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
buildout
=
buildout
=
zc
.
buildout
.
testing
.
Buildout
()
buildout
[
'urlinfo'
]
=
{}
buildout
[
'urlinfo'
][
'url'
]
=
"http://www.google.com/search?hl=en&q=urlparse&btnG=Google+Search"
from
slapos.recipe
import
_urlparse
self
.
recipe
=
_urlparse
.
Recipe
(
buildout
,
"urlinfo"
,
buildout
[
'urlinfo'
])
def
test_options
(
self
):
buildout
=
self
.
buildout
self
.
assertTrue
(
buildout
[
'urlinfo'
])
self
.
assertTrue
(
buildout
[
'urlinfo'
][
'path'
])
self
.
assertTrue
(
buildout
[
'urlinfo'
][
'scheme'
])
self
.
assertTrue
(
buildout
[
'urlinfo'
][
'host'
])
self
.
assertTrue
(
buildout
[
'urlinfo'
][
'query'
])
def
test_install
(
self
):
self
.
assertEqual
(
self
.
recipe
.
install
(),
[])
\ No newline at end of file
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