| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import unittest | 5 import unittest |
| 6 | 6 |
| 7 from mopy.gtest import _gtest_list_tests | 7 from mopy.gtest import _gtest_list_tests |
| 8 | 8 |
| 9 class GTestListTestsTest(unittest.TestCase): | 9 class GTestListTestsTest(unittest.TestCase): |
| 10 """Tests |_gtest_list_tests()| handling of --gtest_list_tests output.""" | 10 """Tests |_gtest_list_tests()| handling of --gtest_list_tests output.""" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 self.assertRaises(Exception, _gtest_list_tests, "Foo") | 40 self.assertRaises(Exception, _gtest_list_tests, "Foo") |
| 41 self.assertRaises(Exception, _gtest_list_tests, "Foo\n") | 41 self.assertRaises(Exception, _gtest_list_tests, "Foo\n") |
| 42 self.assertRaises(Exception, _gtest_list_tests, "Foo.Bar\n") | 42 self.assertRaises(Exception, _gtest_list_tests, "Foo.Bar\n") |
| 43 self.assertRaises(Exception, _gtest_list_tests, "Foo.\nBar\n") | 43 self.assertRaises(Exception, _gtest_list_tests, "Foo.\nBar\n") |
| 44 self.assertRaises(Exception, _gtest_list_tests, "Foo.\r\nBar\r\nGaz\r\n") | 44 self.assertRaises(Exception, _gtest_list_tests, "Foo.\r\nBar\r\nGaz\r\n") |
| 45 self.assertRaises(Exception, _gtest_list_tests, "Foo.\nBar.\n Gaz\n") | 45 self.assertRaises(Exception, _gtest_list_tests, "Foo.\nBar.\n Gaz\n") |
| 46 | 46 |
| 47 | 47 |
| 48 if __name__ == "__main__": | 48 if __name__ == "__main__": |
| 49 unittest.main() | 49 unittest.main() |
| OLD | NEW |