  from __future__ import print_function
  from nose.tools import assert_equal
  
  
  class TestBfs(object):
  
 
</s> remove     "from __future__ import print_function\n",
 </s> add  </s> remove     "from __future__ import print_function\n",
 </s> add  </s> remove 
        with captured_output() as (out, err):
            bfs(node, sys.stdout.write)
            assert_equal(out.getvalue().strip(), '52813')
 </s> add         bfs(node, self.results.add_result)
        assert_equal(str(self.results), '[5, 2, 8, 1, 3]') </s> remove     "\n",
    "        with captured_output() as (out, err):\n",
    "            bfs(node, sys.stdout.write)\n",
    "            assert_equal(out.getvalue().strip(), '52813')\n",
 </s> add     "        bfs(node, self.results.add_result)\n",
    "        assert_equal(str(self.results), '[5, 2, 8, 1, 3]')\n",

  from nose.tools import assert_equal
  
  
  class TestBfs(object):
  
replace keep keep keep keep keep
 Reworked tree bfs unit tests. 
graphs_trees/tree_bfs/test_bfs.py