-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e70abb
commit b95d415
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
import unittest | ||
from sangmyung_univ_auth import auth | ||
|
||
|
||
class MyTestCase(unittest.TestCase): | ||
def setUp(self): | ||
self.username = os.getenv('USERNAME') | ||
self.password = os.getenv('PASSWORD') | ||
|
||
def test_authenticator(self): | ||
res = auth(username=self.username, password=self.password) | ||
self.assertTrue(res.is_auth) | ||
res = auth(username='username', password='password') | ||
self.assertFalse(res.is_auth) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |