Completed
Push — master ( 7b8fc2...c09cea )
by Jeffrey
03:35
created

KissUtilTestCase.setUp()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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