Passed
Pull Request — master (#42)
by Jose
02:25
created

unit.test_port   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
"""Test port statistics."""
2
# from unittest import TestCase
3
# from unittest.mock import patch
4
#
5
# from flask import Response
6
#
7
# from stats_api import PortStatsAPI
8
#
9
#
10
# class TestPort(TestCase):
11
#     """Test switch ports."""
12
#
13
#     def test_non_existent_port(self):
14
#         """Should return 404."""
15
#         api = PortStatsAPI('non-existent-switch', 123)
16
#         with patch('stats_api.request'):
17
#             response = api.get_stats()
18
#             self.assertIsInstance(response, Response,
19
#                                   'Should be a flask.Response object')
20