Skip to content

Commit

Permalink
add unittest for multiple username
Browse files Browse the repository at this point in the history
  • Loading branch information
aristosgi committed May 8, 2022
1 parent 296f646 commit d184716
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sherlock/tests/test_multiple_usernames.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import imp
import unittest
import sys
sys.path.append('../')
import sherlock as sh

checksymbols = []
checksymbols = ["_", "-", "."]

class TestMulripleUsernames(unittest.TestCase):
def test_area(self):
test_usernames = ["test{?}test" , "test{?feo" , "test"]
for name in test_usernames:
if(sh.CheckForParameter(name)):
self.assertAlmostEqual(sh.MultipleUsernames(name), ["test_test" , "test-test" , "test.test"])
else:
self.assertAlmostEqual(name, name)

0 comments on commit d184716

Please sign in to comment.