 
   describe "NodesAndLinkedEdges", ->
 
-    afterEach ->
-      @gv.node_view.glyph.hit_test.restore()
-
-    beforeEach ->
-      @stub = sinon.stub(@gv.node_view.glyph, "hit_test")
-
     describe "do_selection method", ->
 
       it "should clear edge selections if hit_test result is empty", ->

{Plot} = utils.require("models/plots/plot")
{Range1d} = utils.require("models/ranges/range1d")

{LayoutProvider} = utils.require("models/graphs/layout_provider")
{Circle} = utils.require("models/glyphs/circle")
{MultiLine} = utils.require("models/glyphs/multi_line")
{ColumnDataSource} = utils.require("models/sources/column_data_source")
{DataSource} = utils.require("models/sources/data_source")
{GlyphRenderer} = utils.require("models/renderers/glyph_renderer")
{GraphRenderer} = utils.require("models/renderers/graph_renderer")
{NodesOnly, NodesAndLinkedEdges} = utils.require("models/graphs/graph_hit_test_policy")

describe "GraphHitTestPolicy", ->

  afterEach ->
    utils.unstub_canvas()

  beforeEach ->
    utils.stub_canvas()

    @node_renderer = new GlyphRenderer({data_source: @node_source, glyph: new Circle()})
    @edge_renderer = new GlyphRenderer({data_source: @edge_source, glyph: new MultiLine()})

    @gr = new GraphRenderer({
      node_renderer: @node_renderer
      edge_renderer: @edge_renderer
      layout_provider: new LayoutProvider()
    })

    @gv = new @gr.default_view({
      model: @gr
