  class TestMaximizingXor(object):
  
      def test_maximizing_xor(self):
          solution = Solution()
          assert_equal(solution.max_xor(10, 15), 7)
          print('Success: test_maximizing_xor')
  
  
  def main():
      test = TestMaximizingXor()
 
</s> remove class TestMaximizingXor(object):
 </s> add class TestMaximizingXor(unittest.TestCase): </s> remove         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)
 </s> add         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) </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_equal(solution.max_xor(10, 15), 7)\n",
 </s> add     "        self.assertEqual(solution.max_xor(10, 15), 7)\n",
        self.assertEqual(solution.max_xor(10, 15), 7)
  class TestMaximizingXor(object):
  
      def test_maximizing_xor(self):
          solution = Solution()
        self.assertEqual(solution.max_xor(10, 15), 7)
          print('Success: test_maximizing_xor')
  
  
  def main():
      test = TestMaximizingXor()
keep keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/maximizing_xor/test_maximizing_xor.py