

def setUp(self):
    self.server = nntp.NNTPServer()
    self.server.factory = self
    self.backend = database.NewsShelf(None, 'news.db')
    self.backend.addGroup('alt.test.nntp', 'y')
    for s in SUBSCRIPTIONS:
        self.backend.addSubscription(s)
    self.transport = proto_helpers.StringTransport()
    self.server.makeConnection(self.transport)
    self.client = TestNNTPClient()

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/news/test/test_nntp.py NNTPTestCase.setUp/original