blob: 7223e3019600b8c742689c8885bdb6552d1af97d [file] [log] [blame]
# -*- coding: utf-8 -*-
# Copyright 2018 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.
"""Chrome OS dump_image_config unittests"""
from __future__ import print_function
from chromite.lib import cros_test_lib
from chromite.signing.image_signing import imagefile
from chromite.signing.bin import dump_image_config
class TestMain(cros_test_lib.RunCommandTestCase):
"""Test main() function."""
def testDumpConfig(self):
"""Test dump_config."""
self.rc.SetDefaultCmdResult()
dc = self.PatchObject(imagefile, 'DumpConfig')
self.assertIsNone(dump_image_config.main(['/path/to/image.bin']))
dc.assert_called_once_with('/path/to/image.bin')