  class TestUtopianTree(object):
  
      def test_utopian_tree(self):
          solution = Solution()
          assert_equal(solution.calc_utopian_tree_height(0), 1)
          assert_equal(solution.calc_utopian_tree_height(1), 2)
          assert_equal(solution.calc_utopian_tree_height(4), 7)
          print('Success: test_utopian_tree')
  
  
  def main():
      test = TestUtopianTree()
 
</s> remove class TestUtopianTree(object):
 </s> add class TestUtopianTree(unittest.TestCase): </s> remove         assert_equal(solution.max_xor(10, 15), 7)
 </s> add         self.assertEqual(solution.max_xor(10, 15), 7) </s> remove from nose.tools import assert_equal
 </s> add import unittest </s> remove         assert_raises(TypeError, solution.longest_substr, None)
        assert_equal(solution.longest_substr('', k=3), 0)
        assert_equal(solution.longest_substr('abcabcdefgghiij', k=3), 6)
        assert_equal(solution.longest_substr('abcabcdefgghighij', k=3), 7)
 </s> add         self.assertRaises(TypeError, solution.longest_substr, None)
        self.assertEqual(solution.longest_substr('', k=3), 0)
        self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)
        self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7) </s> remove         assert_raises(TypeError, solution.sub_two, None)
        assert_equal(solution.sub_two(7, 5), 2)
        assert_equal(solution.sub_two(-5, -7), 2)
        assert_equal(solution.sub_two(-5, 7), -12)
        assert_equal(solution.sub_two(5, -7), 12)
 </s> add         self.assertRaises(TypeError, solution.sub_two, None)
        self.assertEqual(solution.sub_two(7, 5), 2)
        self.assertEqual(solution.sub_two(-5, -7), 2)
        self.assertEqual(solution.sub_two(-5, 7), -12)
        self.assertEqual(solution.sub_two(5, -7), 12)
        self.assertEqual(solution.calc_utopian_tree_height(0), 1)
        self.assertEqual(solution.calc_utopian_tree_height(1), 2)
        self.assertEqual(solution.calc_utopian_tree_height(4), 7)
  class TestUtopianTree(object):
  
      def test_utopian_tree(self):
          solution = Solution()
        self.assertEqual(solution.calc_utopian_tree_height(0), 1)
        self.assertEqual(solution.calc_utopian_tree_height(1), 2)
        self.assertEqual(solution.calc_utopian_tree_height(4), 7)
        self.assertEqual(solution.calc_utopian_tree_height(0), 1)
        self.assertEqual(solution.calc_utopian_tree_height(1), 2)
        self.assertEqual(solution.calc_utopian_tree_height(4), 7)
        self.assertEqual(solution.calc_utopian_tree_height(0), 1)
        self.assertEqual(solution.calc_utopian_tree_height(1), 2)
        self.assertEqual(solution.calc_utopian_tree_height(4), 7)
          print('Success: test_utopian_tree')
  
  
  def main():
      test = TestUtopianTree()
keep keep keep keep replace replace replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/utopian_tree/test_utopian_tree.py