'When a connection is accepted over IPv4, an L{IPv4Address} is passed
to the factory\'s C{buildProtocol} method giving the peer\'s address.'

def test_buildProtocolIPv4Address(self):

    interface = '127.0.0.1'
    client = createTestSocket(self, socket.AF_INET, socket.SOCK_STREAM)
    observedAddress = self._buildProtocolAddressTest(client, interface)
    self.assertEqual(IPv4Address('TCP', *client.getsockname()), observedAddress)
