  
  
  class TestCheckBalance(object):
  
      @raises(TypeError)
      def test_check_balance_empty(self):
          bst = BstBalance(None)
          bst.check_balance()
  
      def test_check_balance(self):
 
</s> remove class TestCheckBalance(object):
 </s> add class TestCheckBalance(unittest.TestCase): </s> remove         assert_equal(bst.check_balance(), True)
 </s> add         self.assertEqual(bst.check_balance(), True) </s> remove from nose.tools import assert_equal
from nose.tools import raises
 </s> add import unittest </s> remove         validate_bst(None)
 </s> add         bst = BstValidate(None)
        bst.validate() </s> remove     @raises(Exception)
 </s> add 
  
  
  class TestCheckBalance(object):
  

      def test_check_balance_empty(self):
          bst = BstBalance(None)
          bst.check_balance()
  
      def test_check_balance(self):
keep keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for graphs_trees/ (#277) 
graphs_trees/check_balance/test_check_balance.py