blob: 95b9ae780177060fb18ace00df854c93ab901d59 [file] [log] [blame]
Allen Lieb107022017-05-04 13:19:17 -07001# 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
7from __future__ import absolute_import
8from __future__ import print_function
9from __future__ import unicode_literals
10
11from chromite.lib import cros_test_lib
12from chromite.scripts.sysmon import net_metrics
13
14
15class TestNetMetrics(cros_test_lib.TestCase):
16 """Tests for network metrics."""
17
18 def test_collect_net_info(self):
19 """Tests that collecting the git hash doesn't have type conflicts."""
20 # This has the side-effect of checking the types are correct.
21 net_metrics.collect_net_info()