blob: bbf6869366150c73e0183a97f8df675256d5304d [file] [log] [blame]
Chetan Gaonkercb122cc2016-05-10 10:58:34 -07001#!/usr/bin/env python
Chetan Gaonkercfcce782016-05-10 10:10:42 -07002#
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 Gaonkercd974cd2016-03-04 14:56:58 -080017import unittest
18import os,sys
Chetan Gaonkercd974cd2016-03-04 14:56:58 -080019from EapMD5 import MD5AuthTest
20
21class 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
30if __name__ == '__main__':
31 t = MD5AuthTest()
32 t.runTest()
33 ####### Start the EAP-MD5 Negative testcase
34 t._wrong_password()
35 t.runTest()
36