def test_multipleReplace(self):
        """
        In the case that multiple conditions are true, the first one
        (to the reader) is chosen by L{util._replaceIf}
        """
        @util._replaceIf(True, lambda: "hi")
        @util._replaceIf(False, lambda: "bar")
        @util._replaceIf(True, lambda: "baz")
        def test():
            return "bye"

        self.assertEqual(test(), "hi")

        In the case that multiple conditions are true, the first one
        (to the reader) is chosen by L{util._replaceIf}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_util.py