def success_reply_xml(self, u1, u2, u3, d1, success_flag, prev_state):
        main.reactor.callLater = mock.MagicMock()

        # Calculate the expected state from prev_state and success_flag
        expected_state = self.mock_JunoscriptRpc.fsm.\
            transitions[prev_state, success_flag]

        self.mock_JunoscriptRpc.updateStatus.\
            assert_called_with(u1, u2, u3)

        # Match against the expected_state and the state fsm has
        # transitioned to
        self.assertEqual(expected_state[0], self.mock_JunoscriptRpc.fsm.state)
A method which checks all the calls made after 'receiving xml'
dataset/ETHPy150Open facebook/fbpush/tests/test_push.py/FBPushJunoscriptRpcTestCase.success_reply_xml