blob: 8752c98107c92eb1cf573b789224be20a57ae268 [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
Allen Lieb107022017-05-04 13:19:17 -07009
10from chromite.lib import cros_test_lib
11from chromite.scripts.sysmon import net_metrics
12
13
14class 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()