# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import unittest
import ponsim_onu


class TestPonsimOnu (unittest.TestCase):
    def test_mac_str_to_tuple(self):
        result = ponsim_onu.mac_str_to_tuple("01:02:03:04:05:06")
        self.assertEqual(result, (1, 2, 3, 4, 5, 6))


def main():
    unittest.main()


if __name__ == "__main__":
    main()
