  class TestBstSecondLargest(object):
  
      def test_bst_second_largest(self):
          bst = Solution(None)
          assert_raises(TypeError, bst.find_second_largest)
          root = Node(10)
          bst = Solution(root)
          node5 = bst.insert(5)
          node15 = bst.insert(15)
          node3 = bst.insert(3)
 
</s> remove class TestBstSecondLargest(object):
 </s> add class TestBstSecondLargest(unittest.TestCase): </s> remove         assert_equal(bst.find_second_largest(), node20)
 </s> add         self.assertEqual(bst.find_second_largest(), node20) </s> remove         assert_equal(bst.find_second_largest(), node7)
 </s> add         self.assertEqual(bst.find_second_largest(), node7) </s> remove     "        assert_raises(TypeError, bst.find_second_largest)\n",
 </s> add     "        self.assertRaises(TypeError, bst.find_second_largest)\n", </s> remove     "        assert_raises(TypeError, bst.find_second_largest)\n",
 </s> add     "        self.assertRaises(TypeError, bst.find_second_largest)\n",
        self.assertRaises(TypeError, bst.find_second_largest)
  class TestBstSecondLargest(object):
  
      def test_bst_second_largest(self):
          bst = Solution(None)
        self.assertRaises(TypeError, bst.find_second_largest)
          root = Node(10)
          bst = Solution(root)
          node5 = bst.insert(5)
          node15 = bst.insert(15)
          node3 = bst.insert(3)
keep keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for graphs_trees/ (#277) 
graphs_trees/bst_second_largest/test_bst_second_largest.py