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

Unified Diff: third_party/twisted_8_1/twisted/test/test_strports.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 side-by-side diff with in-line comments
Download patch
Index: third_party/twisted_8_1/twisted/test/test_strports.py
diff --git a/third_party/twisted_8_1/twisted/test/test_strports.py b/third_party/twisted_8_1/twisted/test/test_strports.py
deleted file mode 100644
index b057ba475df965a3bedfda4e7e7e041cb05fcc1b..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/test/test_strports.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-#
-from twisted.application import strports
-from twisted.trial import unittest
-
-class ParserTestCase(unittest.TestCase):
-
- f = "Factory"
-
- def testSimpleNumeric(self):
- self.assertEqual(strports.parse('80', self.f),
- ('TCP', (80, self.f), {'interface':'', 'backlog':50}))
-
- def testSimpleTCP(self):
- self.assertEqual(strports.parse('tcp:80', self.f),
- ('TCP', (80, self.f), {'interface':'', 'backlog':50}))
-
- def testInterfaceTCP(self):
- self.assertEqual(strports.parse('tcp:80:interface=127.0.0.1', self.f),
- ('TCP', (80, self.f),
- {'interface':'127.0.0.1', 'backlog':50}))
-
- def testBacklogTCP(self):
- self.assertEqual(strports.parse('tcp:80:backlog=6', self.f),
- ('TCP', (80, self.f),
- {'interface':'', 'backlog':6}))
-
- def testSimpleUnix(self):
- self.assertEqual(strports.parse('unix:/var/run/finger', self.f),
- ('UNIX', ('/var/run/finger', self.f),
- {'mode':0666, 'backlog':50}))
-
- def testModedUNIX(self):
- self.assertEqual(strports.parse('unix:/var/run/finger:mode=0660',
- self.f),
- ('UNIX', ('/var/run/finger', self.f),
- {'mode':0660, 'backlog':50}))
-
- def testAllKeywords(self):
- self.assertEqual(strports.parse('port=80', self.f),
- ('TCP', (80, self.f), {'interface':'', 'backlog':50}))
-
- def testEscape(self):
- self.assertEqual(strports.parse(r'unix:foo\:bar\=baz\:qux\\', self.f),
- ('UNIX', ('foo:bar=baz:qux\\', self.f),
- {'mode':0666, 'backlog':50}))
-
- def testImpliedEscape(self):
- self.assertEqual(strports.parse(r'unix:address=foo=bar', self.f),
- ('UNIX', ('foo=bar', self.f),
- {'mode':0666, 'backlog':50}))
-
- def testNonstandardDefault(self):
- self.assertEqual(strports.parse('filename', self.f, 'unix'),
- ('UNIX', ('filename', self.f),
- {'mode':0666, 'backlog':50}))
« no previous file with comments | « third_party/twisted_8_1/twisted/test/test_strerror.py ('k') | third_party/twisted_8_1/twisted/test/test_task.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698