  from nose.tools import assert_raises
  from nose.tools import assert_true
  
  
  class TestMaxProfit(object):
  
      def test_max_profit(self):
          stock_trader = StockTrader()
          assert_raises(TypeError, stock_trader.find_max_profit, None, None)
          assert_equal(stock_trader.find_max_profit(prices=[], k=0), [])
 
</s> remove from nose.tools import assert_equal
from nose.tools import assert_raises
from nose.tools import assert_true
 </s> add import unittest </s> remove         assert_raises(TypeError, stock_trader.find_max_profit, None, None)
        assert_equal(stock_trader.find_max_profit(prices=[], k=0), [])
 </s> add         self.assertRaises(TypeError, stock_trader.find_max_profit, None, None)
        self.assertEqual(stock_trader.find_max_profit(prices=[], k=0), []) </s> remove class TestLongestIncreasingSubseq(object):
 </s> add class TestLongestIncreasingSubseq(unittest.TestCase): </s> remove     "class TestMaxProfit(object):\n",
 </s> add     "class TestMaxProfit(unittest.TestCase):\n", </s> remove     "class TestMaxProfit(object):\n",
 </s> add     "class TestMaxProfit(unittest.TestCase):\n",
class TestMaxProfit(unittest.TestCase):
  from nose.tools import assert_raises
  from nose.tools import assert_true
  
  
class TestMaxProfit(unittest.TestCase):
  
      def test_max_profit(self):
          stock_trader = StockTrader()
          assert_raises(TypeError, stock_trader.find_max_profit, None, None)
          assert_equal(stock_trader.find_max_profit(prices=[], k=0), [])
keep keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for recursion_dynamic/ (#280) 
recursion_dynamic/max_profit_k/test_max_profit.py