blob: 50efdb7e5db32315d4bb2068fe30ed19c5566d2b [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')
if __name__ == '__main__':
unittest.main()