Completed
Pull Request — master (#2)
by Jeffrey
04:10
created

KISSUtilTestCase.test_extract_ui()   A

Complexity

Conditions 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
4
"""Tests for KISS Util Module."""
5
6
__author__ = 'Jeffrey Phillips Freeman WI2ARD <[email protected]>'
7
__license__ = 'Apache License, Version 2.0'
8
__copyright__ = 'Copyright 2016, Syncleus, Inc. and contributors'
9
10
import sys
11
import unittest
12
13
import apex
14
import apex.kiss.constants
15
import apex.kiss.util
16
from . import constants
17
18
19
# pylint: disable=R0904,C0103
20
class KISSUtilTestCase(unittest.TestCase):
21
22
    """Test class for KISS Python Module."""
23
24
    def setUp(self):
25
        """Setup."""
26
        self.test_frames = open(constants.TEST_FRAMES, 'r')
27
        self.test_frame = self.test_frames.readlines()[0].strip()
28
29
    def tearDown(self):
30
        """Teardown."""
31
        self.test_frames.close()
32
33
    # # All other tests only work on python2
34
    # # if sys.version_info < (3, 0):
35
    # def test_extract_ui(self):
36
    #     """
37
    #     Tests `kiss.util.extract_ui` util function.
38
    #     """
39
    #     frame_ui = apex.kiss.util.extract_ui(self.test_frame)
40
    #     self.assertEqual('APRX240W2GMD 6WIDE1 1', frame_ui)
41
42
43
if __name__ == '__main__':
44
    unittest.main()
45