def test_receivePb(self):
        """
        If the PB dialect has been selected, a PB VOCAB item is accepted.
        """
        selectDialect(self.enc, b'pb')
        self.enc.dataReceived(self.legalPbItem)
        self.assertEqual(self.result, self.vocab)

        If the PB dialect has been selected, a PB VOCAB item is accepted.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/test/test_banana.py