def test_multipleInitialStatesFailure(self):
        """
        A L{MethodicalMachine} can only have one initial state.
        """

        class WillFail(object):
            m = MethodicalMachine()

            @m.state(initial=True)
            def firstInitialState(self):
                "The first initial state -- this is OK."

            with self.assertRaises(ValueError):
                @m.state(initial=True)
                def secondInitialState(self):
                    "The second initial state -- results in a ValueError."

        A L{MethodicalMachine} can only have one initial state.
        
stackoverflow/venv/lib/python3.6/site-packages/automat/_test/test_methodical.py