'Returns a C{Channel} whose C{site} and C{requestFactory} attributes are
assigned from the C{site} instance.'

def test_buildProtocol(self):

    site = server.Site(SimpleResource())
    channel = site.buildProtocol(None)
    self.assertIs(site, channel.site)
    self.assertIs(site.requestFactory, channel.requestFactory)
