diff options
Diffstat (limited to 'lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/persisted/test/test_styles.py')
-rwxr-xr-x | lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/persisted/test/test_styles.py | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/persisted/test/test_styles.py b/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/persisted/test/test_styles.py deleted file mode 100755 index 29647a92..00000000 --- a/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/persisted/test/test_styles.py +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright (c) Twisted Matrix Laboratories. -# See LICENSE for details. - -""" -Tests for L{twisted.persisted.styles}. -""" - -from twisted.trial import unittest -from twisted.persisted.styles import unpickleMethod - - -class Foo: - """ - Helper class. - """ - def method(self): - """ - Helper method. - """ - - - -class Bar: - """ - Helper class. - """ - - - -class UnpickleMethodTestCase(unittest.TestCase): - """ - Tests for the unpickleMethod function. - """ - - def test_instanceBuildingNamePresent(self): - """ - L{unpickleMethod} returns an instance method bound to the - instance passed to it. - """ - foo = Foo() - m = unpickleMethod('method', foo, Foo) - self.assertEqual(m, foo.method) - self.assertNotIdentical(m, foo.method) - - - def test_instanceBuildingNameNotPresent(self): - """ - If the named method is not present in the class, - L{unpickleMethod} finds a method on the class of the instance - and returns a bound method from there. - """ - foo = Foo() - m = unpickleMethod('method', foo, Bar) - self.assertEqual(m, foo.method) - self.assertNotIdentical(m, foo.method) |