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

Unified Diff: third_party/twisted_8_1/twisted/test/test_abstract.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_abstract.py
diff --git a/third_party/twisted_8_1/twisted/test/test_abstract.py b/third_party/twisted_8_1/twisted/test/test_abstract.py
deleted file mode 100644
index 44b4646cbba426143ca67e0a9aeca0ba41fbd62f..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/test/test_abstract.py
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright (c) 2007 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-"""
-Tests for generic file descriptor based reactor support code.
-"""
-
-from twisted.trial.unittest import TestCase
-
-from twisted.internet.abstract import isIPAddress
-
-
-class AddressTests(TestCase):
- """
- Tests for address-related functionality.
- """
- def test_decimalDotted(self):
- """
- L{isIPAddress} should return C{True} for any decimal dotted
- representation of an IPv4 address.
- """
- self.assertTrue(isIPAddress('0.1.2.3'))
- self.assertTrue(isIPAddress('252.253.254.255'))
-
-
- def test_shortDecimalDotted(self):
- """
- L{isIPAddress} should return C{False} for a dotted decimal
- representation with fewer or more than four octets.
- """
- self.assertFalse(isIPAddress('0'))
- self.assertFalse(isIPAddress('0.1'))
- self.assertFalse(isIPAddress('0.1.2'))
- self.assertFalse(isIPAddress('0.1.2.3.4'))
-
-
- def test_invalidLetters(self):
- """
- L{isIPAddress} should return C{False} for any non-decimal dotted
- representation including letters.
- """
- self.assertFalse(isIPAddress('a.2.3.4'))
- self.assertFalse(isIPAddress('1.b.3.4'))
-
-
- def test_invalidPunctuation(self):
- """
- L{isIPAddress} should return C{False} for a string containing
- strange punctuation.
- """
- self.assertFalse(isIPAddress(','))
- self.assertFalse(isIPAddress('1,2'))
- self.assertFalse(isIPAddress('1,2,3'))
- self.assertFalse(isIPAddress('1.,.3,4'))
-
-
- def test_emptyString(self):
- """
- L{isIPAddress} should return C{False} for the empty string.
- """
- self.assertFalse(isIPAddress(''))
-
-
- def test_invalidNegative(self):
- """
- L{isIPAddress} should return C{False} for negative decimal values.
- """
- self.assertFalse(isIPAddress('-1'))
- self.assertFalse(isIPAddress('1.-2'))
- self.assertFalse(isIPAddress('1.2.-3'))
- self.assertFalse(isIPAddress('1.2.-3.4'))
-
-
- def test_invalidPositive(self):
- """
- L{isIPAddress} should return C{False} for a string containing
- positive decimal values greater than 255.
- """
- self.assertFalse(isIPAddress('256.0.0.0'))
- self.assertFalse(isIPAddress('0.256.0.0'))
- self.assertFalse(isIPAddress('0.0.256.0'))
- self.assertFalse(isIPAddress('0.0.0.256'))
- self.assertFalse(isIPAddress('256.256.256.256'))
« no previous file with comments | « third_party/twisted_8_1/twisted/test/stdio_test_writeseq.py ('k') | third_party/twisted_8_1/twisted/test/test_adbapi.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698