Allen Li | eb10702 | 2017-05-04 13:19:17 -0700 | [diff] [blame] | 1 | # Copyright 2017 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | """Unit tests for git_metrics.""" |
| 6 | |
| 7 | from __future__ import absolute_import |
| 8 | from __future__ import print_function |
Allen Li | eb10702 | 2017-05-04 13:19:17 -0700 | [diff] [blame] | 9 | |
| 10 | from chromite.lib import cros_test_lib |
| 11 | from chromite.scripts.sysmon import net_metrics |
| 12 | |
| 13 | |
| 14 | class TestNetMetrics(cros_test_lib.TestCase): |
| 15 | """Tests for network metrics.""" |
| 16 | |
| 17 | def test_collect_net_info(self): |
| 18 | """Tests that collecting the git hash doesn't have type conflicts.""" |
| 19 | # This has the side-effect of checking the types are correct. |
| 20 | net_metrics.collect_net_info() |