Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
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
czos-dpend
routersploit
Commits
6a60de9d
Commit
6a60de9d
authored
Jul 30, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testing order of suggested_commands()
parent
7e8a7a99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_interpreter.py
routersploit/test/test_interpreter.py
+4
-4
No files found.
routersploit/test/test_interpreter.py
View file @
6a60de9d
...
...
@@ -254,16 +254,16 @@ class RoutersploitInterpreterTest(RoutersploitTestCase):
self
.
assertEqual
(
self
.
module_prompt_default
(
'UnnamedModule'
),
self
.
interpreter
.
prompt
)
def
test_suggested_commands_with_loaded_module_and_no_global_value_set
(
self
):
self
.
assert
Items
Equal
(
self
.
assertEqual
(
list
(
self
.
interpreter
.
suggested_commands
()),
[
'
use '
,
'run'
,
'back'
,
'set '
,
'setg '
,
'show '
,
'check'
,
'exec '
,
'help'
,
'exit
'
]
# Extra space at the end because of following param
[
'
back'
,
'check'
,
'exec '
,
'exit'
,
'help'
,
'run'
,
'set '
,
'setg '
,
'show '
,
'use
'
]
# Extra space at the end because of following param
)
def
test_suggested_commands_with_loaded_module_and_global_value_set
(
self
):
GLOBAL_OPTS
[
'key'
]
=
'value'
self
.
assert
Items
Equal
(
self
.
assertEqual
(
list
(
self
.
interpreter
.
suggested_commands
()),
[
'
use '
,
'run'
,
'back'
,
'set '
,
'setg '
,
'show '
,
'check'
,
'exec '
,
'help'
,
'exit'
,
'unsetg
'
]
# Extra space at the end because of following param
[
'
back'
,
'check'
,
'exec '
,
'exit'
,
'help'
,
'run'
,
'set '
,
'setg '
,
'show '
,
'unsetg '
,
'use
'
]
# Extra space at the end because of following param
)
def
test_suggested_commands_without_loaded_module
(
self
):
...
...
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