def METHOD_NAME(self):
    obj = Curve([])
    doc = Document()
    server_doc = bokeh_renderer.server_doc(obj, doc)
    self.assertIs(server_doc, doc)
    self.assertIs(bokeh_renderer.last_plot.document, doc)