mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-22 11:53:03 +00:00
Add test methods for Error Message detection method as well. Add Dribbble to tests.
This commit is contained in:
parent
6fc5c131db
commit
83aed9aeee
1 changed files with 44 additions and 0 deletions
44
tests/all.py
44
tests/all.py
|
@ -190,3 +190,47 @@ class SherlockSiteCoverageTests(SherlockBaseTest):
|
|||
)
|
||||
|
||||
return
|
||||
|
||||
def test_coverage_false_via_message(self):
|
||||
"""Test Username Does Not Exist Site Coverage (Via Error Message).
|
||||
|
||||
This test checks all sites with the "Error Message" detection mechanism
|
||||
to ensure that a Username that does not exist is reported that way.
|
||||
|
||||
Keyword Arguments:
|
||||
self -- This object.
|
||||
|
||||
Return Value:
|
||||
N/A.
|
||||
Will trigger an assert if detection mechanism did not work as expected.
|
||||
"""
|
||||
|
||||
self.username_check(['noonewouldeverusethis7'],
|
||||
["Dribbble"
|
||||
],
|
||||
exist_check=False
|
||||
)
|
||||
|
||||
return
|
||||
|
||||
def test_coverage_true_via_message(self):
|
||||
"""Test Username Does Exist Site Coverage (Via Error Message).
|
||||
|
||||
This test checks all sites with the "Error Message" detection mechanism
|
||||
to ensure that a Username that does exist is reported that way.
|
||||
|
||||
Keyword Arguments:
|
||||
self -- This object.
|
||||
|
||||
Return Value:
|
||||
N/A.
|
||||
Will trigger an assert if detection mechanism did not work as expected.
|
||||
"""
|
||||
|
||||
self.username_check(['blue'],
|
||||
["Dribbble"
|
||||
],
|
||||
exist_check=True
|
||||
)
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue