twisted.internet.test.test_address.AddressTestCaseMixin(object)
class documentationtwisted.internet.test.test_address
(View In Hierarchy)
Known subclasses: twisted.conch.test.test_address.SSHTransportAddressTests, twisted.internet.test.test_address.EmptyUNIXAddressTests, twisted.internet.test.test_address.HostnameAddressTests, twisted.internet.test.test_address.IPv4AddressTestCaseMixin, twisted.internet.test.test_address.IPv6AddressTests
Method | test_addressComparison | Two different address instances, sharing the same properties are
considered equal by == and not considered not equal by
!= . |
Method | test_hash | __hash__ can be used to get a hash of an address, allowing
addresses to be used as keys in dictionaries, for instance. |
Method | test_differentNamesComparison | Check that comparison operators work correctly on address objects when a different name is passed in |
Method | assertDeprecations | Assert that the a DeprecationWarning with the given message was emitted against the given method. |
Two different address instances, sharing the same properties are
considered equal by ==
and not considered not equal by
!=
.
Note: When applied via UNIXAddress class, this uses the same filename for both objects being compared.
__hash__
can be used to get a hash of an address, allowing
addresses to be used as keys in dictionaries, for instance.