def test_dialectNotSet(self):
        """
        If no dialect has been selected and a PB VOCAB item is received,
        L{NotImplementedError} is raised.
        """
        self.assertRaises(
            NotImplementedError,
            self.enc.dataReceived, self.legalPbItem)

        If no dialect has been selected and a PB VOCAB item is received,
        L{NotImplementedError} is raised.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/test/test_banana.py