  from nose.tools import assert_equal, assert_raises
  
  
  class TestMaxProfit(object):
  
      def test_max_profit(self):
          solution = Solution()
          assert_raises(TypeError, solution.find_max_profit, None)
          assert_raises(ValueError, solution.find_max_profit, [])
 
</s> remove         assert_raises(TypeError, solution.find_max_profit, None)
        assert_raises(ValueError, solution.find_max_profit, [])
        assert_equal(solution.find_max_profit([8, 5, 3, 2, 1]), -1)
        assert_equal(solution.find_max_profit([5, 3, 7, 4, 2, 6, 9]), 7)
 </s> add         self.assertRaises(TypeError, solution.find_max_profit, None)
        self.assertRaises(ValueError, solution.find_max_profit, [])
        self.assertEqual(solution.find_max_profit([8, 5, 3, 2, 1]), -1)
        self.assertEqual(solution.find_max_profit([5, 3, 7, 4, 2, 6, 9]), 7) </s> remove from nose.tools import assert_equal, assert_raises
 </s> add import unittest </s> remove class TestMultOtherNumbers(object):
 </s> add class TestMultOtherNumbers(unittest.TestCase): </s> remove class TestMergeRanges(object):
 </s> add class TestMergeRanges(unittest.TestCase): </s> remove class TestProdThree(object):
 </s> add class TestProdThree(unittest.TestCase):
class TestMaxProfit(unittest.TestCase):
  from nose.tools import assert_equal, assert_raises
  
  
class TestMaxProfit(unittest.TestCase):
  
      def test_max_profit(self):
          solution = Solution()
          assert_raises(TypeError, solution.find_max_profit, None)
          assert_raises(ValueError, solution.find_max_profit, [])
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/max_profit/test_max_profit.py