blob: 033b5cef49ee31c30e27a34adc324412dc0f392b [file] [log] [blame]
#!/usr/bin/python
#
# Copyright 2015 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.
import unittest
import common
from autotest_lib.client.common_lib.cros import servo_afe_board_map
class ServoAfeBoardMapTest(unittest.TestCase):
"""Tests for how we map AFE boards to servo boards."""
def test_afe_board_mapping(self):
"""Tests mappings."""
afe_map = servo_afe_board_map.map_afe_board_to_servo_board
self.assertEqual(afe_map('gizmo'), 'panther')
self.assertEqual(afe_map('link_freon'), 'link')
self.assertEqual(afe_map('stumpy_moblab'), 'stumpy')