def test_plotly_restyle_toplevel(self):
        # Set bar marker
        self.figure.plotly_restyle({"marker": {"color": "green"}}, trace_indexes=1)

        self.figure._send_restyle_msg.assert_called_once_with(
            {"marker": {"color": "green"}}, trace_indexes=[1]
        )