Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webssh
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
郑天保
webssh
Commits
c1d7c9cd
Commit
c1d7c9cd
authored
Apr 22, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test_get_policy_dictionary
parent
452a6281
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
README.md
README.md
+2
-1
test_policy.py
tests/test_policy.py
+13
-0
No files found.
README.md
View file @
c1d7c9cd
...
...
@@ -22,7 +22,8 @@ A simple web application to be used as an ssh client to connect to your ssh serv
git clone https://github.com/huashengdun/webssh.git
cd webssh
pip install -r requirements.txt
python webssh/main.py
cd webssh
python main.py
```
### Options
...
...
tests/test_policy.py
0 → 100644
View file @
c1d7c9cd
import
unittest
from
paramiko.client
import
RejectPolicy
,
WarningPolicy
from
webssh.policy
import
AutoAddPolicy
,
get_policy_dictionary
class
TestPolicy
(
unittest
.
TestCase
):
def
test_get_policy_dictionary
(
self
):
classes
=
[
AutoAddPolicy
,
RejectPolicy
,
WarningPolicy
]
dic
=
get_policy_dictionary
()
for
cls
in
classes
:
val
=
dic
[
cls
.
__name__
.
lower
()]
self
.
assertIs
(
cls
,
val
)
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