Chetan Gaonker | cb122cc | 2016-05-10 10:58:34 -0700 | [diff] [blame^] | 1 | #!/usr/bin/env python |
Chetan Gaonker | cfcce78 | 2016-05-10 10:10:42 -0700 | [diff] [blame] | 2 | # |
| 3 | # Copyright 2016-present Ciena Corporation |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
Chetan Gaonker | cd974cd | 2016-03-04 14:56:58 -0800 | [diff] [blame] | 17 | import unittest |
| 18 | import os,sys |
Chetan Gaonker | cd974cd | 2016-03-04 14:56:58 -0800 | [diff] [blame] | 19 | from EapMD5 import MD5AuthTest |
| 20 | |
| 21 | class eap_auth_exchange(unittest.TestCase): |
| 22 | def test_eap_md5(self): |
| 23 | t = MD5AuthTest() |
| 24 | t.runTest() |
| 25 | def test_eap_md5_wrg_password(self): |
| 26 | t = MD5AuthTest() |
| 27 | t._wrong_password() |
| 28 | t.runTest() |
| 29 | |
| 30 | if __name__ == '__main__': |
| 31 | t = MD5AuthTest() |
| 32 | t.runTest() |
| 33 | ####### Start the EAP-MD5 Negative testcase |
| 34 | t._wrong_password() |
| 35 | t.runTest() |
| 36 | |