blob: 48a0e99510e6cdc73db9b4cc562542070c21629b [file] [log] [blame]
# 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.
"""This module tests the cros lint command."""
from __future__ import print_function
import os
import sys
sys.path.insert(0, os.path.abspath('%s/../../..' % os.path.dirname(__file__)))
from chromite.cros.commands import cros_lint
from chromite.lib import cros_test_lib
class LintCommandTest(cros_test_lib.TestCase):
"""Test class for our LintCommand class."""
def testOutputArgument(self):
"""Tests that the --output argument mapping for cpplint is complete."""
set(cros_lint.CPPLINT_OUTPUT_FORMAT_MAP.keys() + ['default']))
if __name__ == '__main__':