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

Side by Side Diff: third_party/twisted_8_1/twisted/test/test_enterprise.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) 2001-2008 Twisted Matrix Laboratories.
2 # See LICENSE for details.
3
4 """
5 General tests for twisted.enterprise.
6 """
7
8 from twisted.trial import unittest
9
10 from twisted.enterprise import util
11
12 class QuotingTestCase(unittest.TestCase):
13
14 def testQuoting(self):
15 for value, typ, expected in [
16 (12, "integer", "12"),
17 ("foo'd", "text", "'foo''d'"),
18 ("\x00abc\\s\xFF", "bytea", "'\\\\000abc\\\\\\\\s\\377'"),
19 (12, "text", "'12'"),
20 (u"123'456", "text", u"'123''456'")
21 ]:
22 self.assertEquals(
23 self.callDeprecated(util._deprecatedVersion, util.quote, value,
24 typ),
25 expected)
26
27
28 def test_safeDeprecation(self):
29 """
30 L{safe} is deprecated.
31 """
32 self.callDeprecated(util._deprecatedVersion, util.safe, "foo")
33
34
35 def test_getKeyColumnDeprecation(self):
36 """
37 L{getKeyColumn} is deprecated.
38 """
39 class Row(object):
40 rowKeyColumns = ()
41 self.callDeprecated(util._deprecatedVersion, util.getKeyColumn, Row, "fo o")
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/test/test_doc.py ('k') | third_party/twisted_8_1/twisted/test/test_epoll.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698