Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: mojo/public/tools/mopy/gtest_list_tests_unittest.py

Issue 878933003: Move the apptest runner and parts of mopy to the public SDK. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/tools/mopy/gtest.py ('k') | mojo/public/tools/mopy/paths.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « mojo/public/tools/mopy/gtest.py ('k') | mojo/public/tools/mopy/paths.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698