Chetan Gaonker | cd974cd | 2016-03-04 14:56:58 -0800 | [diff] [blame] | 1 | import unittest |
| 2 | import os,sys |
| 3 | CORD_TEST_UTILS = 'utils' |
| 4 | test_root = os.getenv('CORD_TEST_ROOT') or './' |
| 5 | sys.path.append(test_root + CORD_TEST_UTILS) |
| 6 | from EapMD5 import MD5AuthTest |
| 7 | |
| 8 | class eap_auth_exchange(unittest.TestCase): |
| 9 | def test_eap_md5(self): |
| 10 | t = MD5AuthTest() |
| 11 | t.runTest() |
| 12 | def test_eap_md5_wrg_password(self): |
| 13 | t = MD5AuthTest() |
| 14 | t._wrong_password() |
| 15 | t.runTest() |
| 16 | |
| 17 | if __name__ == '__main__': |
| 18 | t = MD5AuthTest() |
| 19 | t.runTest() |
| 20 | ####### Start the EAP-MD5 Negative testcase |
| 21 | t._wrong_password() |
| 22 | t.runTest() |
| 23 | |