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

Side by Side Diff: third_party/twisted_8_1/twisted/trial/test/mockcustomsuite2.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2006 Twisted Matrix Laboratories. See LICENSE for details
2
3 """
4 Mock test module that contains a C{testSuite} method. L{runner.TestLoader}
5 should load the tests from the C{testSuite}, not from the C{Foo} C{TestCase}.
6
7 See L{twisted.trial.test.test_loader.LoaderTest.test_loadModuleWith_testSuite}.
8 """
9
10
11 from twisted.trial import unittest, runner
12
13 class Foo(unittest.TestCase):
14 def test_foo(self):
15 pass
16
17
18 def testSuite():
19 ts = runner.TestSuite()
20 ts.name = "MyCustomSuite"
21 return ts
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698