From 83aed9aeeed4b6d3c3cf524c66b56bd4e770ade5 Mon Sep 17 00:00:00 2001 From: "Christopher K. Hoadley" Date: Wed, 30 Jan 2019 18:24:28 -0600 Subject: [PATCH] Add test methods for Error Message detection method as well. Add Dribbble to tests. --- tests/all.py | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/tests/all.py b/tests/all.py index c76ff2aa..e21e960f 100644 --- a/tests/all.py +++ b/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