def test_otherComparison(self):
        """
        An instance of L{Headers} does not compare equal to other unrelated
        objects.
        """
        h = Headers()
        self.assertNotEqual(h, ())
        self.assertNotEqual(h, object())
        self.assertNotEqual(h, u"foo")

        An instance of L{Headers} does not compare equal to other unrelated
        objects.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http_headers.py