Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
69f380da
Commit
69f380da
authored
Aug 19, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed mod_args test to match connection
parent
7a4a156d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/units/parsing/test_mod_args.py
+3
-3
No files found.
test/units/parsing/test_mod_args.py
View file @
69f380da
...
...
@@ -109,11 +109,11 @@ class TestModArgsDwim(unittest.TestCase):
def
test_local_action_string
(
self
):
m
=
ModuleArgsParser
(
dict
(
local_action
=
'copy src=a dest=b'
))
mod
,
args
,
to
=
m
.
parse
()
self
.
_debug
(
mod
,
args
,
to
)
mod
,
args
,
connection
=
m
.
parse
()
self
.
_debug
(
mod
,
args
,
connection
)
self
.
assertEqual
(
mod
,
'copy'
)
self
.
assertEqual
(
args
,
dict
(
src
=
'a'
,
dest
=
'b'
))
self
.
assertIs
(
to
,
'localhost
'
)
self
.
assertIs
(
connection
,
'local
'
)
def
test_multiple_actions
(
self
):
m
=
ModuleArgsParser
(
dict
(
action
=
'shell echo hi'
,
local_action
=
'shell echo hi'
))
...
...
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