Add ICU message format support
[chromium-blink-merge.git] / tools / cygprofile / cygprofile_utils_unittest.py
blob84e0a61a65a616aba304f9ed3384d4b500ffdb9c
1 #!/usr/bin/python
2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 import unittest
8 import cygprofile_utils
11 class TestCygprofileUtils(unittest.TestCase):
12 def testInvertMapping(self):
13 inputMap = {'1': ['2', '3'],
14 '4': ['2', '5']}
15 self.assertEqual(cygprofile_utils.InvertMapping(inputMap),
16 {'2': ['1', '4'],
17 '3': ['1'],
18 '5': ['4']})
21 if __name__ == '__main__':
22 unittest.main()