def test_sendPb(self):
        """
        if pb dialect is selected, the sender must be able to send things in
        that dialect.
        """
        selectDialect(self.enc, b'pb')
        self.enc.sendEncoded(self.vocab)
        self.assertEqual(self.legalPbItem, self.io.getvalue())

        if pb dialect is selected, the sender must be able to send things in
        that dialect.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/test/test_banana.py