       expect(@p.plot_canvas.document).to.be.equal doc
 
     describe "get_constrained_variables", ->
+
       beforeEach ->
         plot_canvas = @p.plot_canvas
         # Visual alignment is dominated by the plot_canvas so a number of the

    @x_range = new Range1d({start: 0, end:10})
    @y_range = new Range1d({start: 0, end: 10})
    toolbar = new Toolbar()
    @p = new Plot({x_range: @x_range, y_range: @y_range, toolbar: toolbar})

  describe "Plot.View", ->
    afterEach ->

      # TODO(bird) Write this test.
      null

  describe "Plot.Model", ->

    it "should have _horizontal set to true by default", ->
      expect(@p._horizontal).to.true

    it "should have a PlotCanvas set on initialization with plot on it", ->
      expect(@p.plot_canvas).to.exist
      expect(@p.plot_canvas.plot).to.be.deep.equal @p

    it "should attach document to plot canvas when document is attached to it", ->
      expect(@p.plot_canvas.document).to.be.null
