diff options
Diffstat (limited to 'crosperf/config_unittest.py')
-rwxr-xr-x | crosperf/config_unittest.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/crosperf/config_unittest.py b/crosperf/config_unittest.py index 637dae9e..9e71539d 100755 --- a/crosperf/config_unittest.py +++ b/crosperf/config_unittest.py @@ -1,14 +1,17 @@ #!/usr/bin/env python2 -# -# Copyright 2014 Google Inc. All Rights Reserved. +# -*- coding: utf-8 -*- +# Copyright 2014 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + """Unit tests for config.py""" from __future__ import print_function -import config - import unittest +import config + class ConfigTestCase(unittest.TestCase): """Class for the config unit tests.""" @@ -16,7 +19,7 @@ class ConfigTestCase(unittest.TestCase): def test_config(self): # Verify that config exists, that it's a dictionary, and that it's # empty. - self.assertTrue(type(config.config) is dict) + self.assertTrue(isinstance(config.config, dict)) self.assertEqual(len(config.config), 0) # Verify that attempting to get a non-existant key out of the @@ -42,7 +45,7 @@ class ConfigTestCase(unittest.TestCase): # Verify that config exists, that it's a dictionary, and that it's # empty. - self.assertTrue(type(config.config) is dict) + self.assertTrue(isinstance(config.config, dict)) self.assertEqual(len(config.config), 0) |