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
10e54078
Commit
10e54078
authored
Oct 13, 2017
by
jabedude
Committed by
Mariusz Kupidura
Oct 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unit test for Exploit options property (#328)
parent
91e1c75f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test_exploits.py
routersploit/test/test_exploits.py
+4
-0
No files found.
routersploit/test/test_exploits.py
View file @
10e54078
...
...
@@ -89,6 +89,10 @@ class OptionTest(RoutersploitTestCase):
mock_module
.
return_value
=
"routersploit.modules.exploits.foo.bar"
self
.
assertEqual
(
str
(
TestExploitFoo
()),
os
.
path
.
join
(
'exploits'
,
'foo'
,
'bar'
))
def
test_exploit_options_property
(
self
):
self
.
assertEqual
(
self
.
exploit_bar
.
options
,
[
'paa'
,
'doo'
])
self
.
assertEqual
(
self
.
exploit_foo
.
options
,
[
'paa'
,
'doo'
])
if
__name__
==
'__main__'
:
unittest
.
main
()
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