     utils.stub_canvas()
     solver_stubs = utils.stub_solver()
 
-    test_plot = new Plot({
-      x_range: new Range1d({start: 0, end: 1})
-      y_range: new Range1d({start: 0, end: 1})
-      toolbar: new Toolbar()
-    })
-    test_plot.attach_document(new Document())
-    test_plot_canvas = test_plot.plot_canvas
+    doc = new Document()
     ticker = new BasicTicker()
     formatter = new BasicTickFormatter()
     @axis = new Axis({

describe "Axis.Model", ->

  it "should have a SidePanel after add_panel is called", ->
    pp = new Plot({
      x_range: new Range1d({start: 0, end: 1})
      y_range: new Range1d({start: 0, end: 1})
    })
    p = pp.plot_canvas
    p.attach_document(new Document())
    ticker = new BasicTicker()
    formatter = new BasicTickFormatter()

    expect(axis.panel).to.be.an.instanceOf(SidePanel)

  it "should have a SidePanel after plot.add_layout is called", ->
    ticker = new BasicTicker()
    formatter = new BasicTickFormatter()
    axis = new Axis({
      ticker: ticker
      formatter: formatter
    })
    expect(axis.panel).to.be.undefined
    p = new Plot({
      x_range: new Range1d({start: 0, end: 1})
      y_range: new Range1d({start: 0, end: 1})
    })
    p.add_layout(axis, 'left')
    p.attach_document(new Document())
    expect(axis.panel).to.be.an.instanceOf(SidePanel)

describe "Axis.View", ->
