blob: e645d48a941888a66b09b4eba4c38dc3d0eaceb6 [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('kip'), 'kip')
self.assertEqual(afe_map('gizmo'), 'panther')
self.assertEqual(afe_map('link_freon'), 'link')
self.assertEqual(afe_map('stumpy_moblab'), 'stumpy')
self.assertEqual(afe_map('veyron_minnie-cheets'), 'veyron_minnie')
if __name__ == '__main__':
unittest.main()