def METHOD_NAME(self):
    layout = go.Layout(title_font_family="Courier")
    # First update with default (recursive) behavior
    layout.update(title={"text": "Fig Title"})
    expected = {"title": {"text": "Fig Title", "font": {"family": "Courier"}}}
    self.assertEqual(layout.to_plotly_json(), expected)
    # Update with overwrite behavior
    layout.update(title={"text": "Fig Title2"}, overwrite=True)
    expected = {"title": {"text": "Fig Title2"}}
    self.assertEqual(layout.to_plotly_json(), expected)