  from nose.tools import assert_equal, assert_raises
  
  
  class TestProdThree(object):
  
      def test_prod_three(self):
          solution = Solution()
          assert_raises(TypeError, solution.max_prod_three, None)
          assert_raises(ValueError, solution.max_prod_three, [1, 2])
 
</s> remove         assert_raises(TypeError, solution.max_prod_three, None)
        assert_raises(ValueError, solution.max_prod_three, [1, 2])
        assert_equal(solution.max_prod_three([5, -2, 3]), -30)
        assert_equal(solution.max_prod_three([5, -2, 3, 1, -1, 4]), 60)
 </s> add         self.assertRaises(TypeError, solution.max_prod_three, None)
        self.assertRaises(ValueError, solution.max_prod_three, [1, 2])
        self.assertEqual(solution.max_prod_three([5, -2, 3]), -30)
        self.assertEqual(solution.max_prod_three([5, -2, 3, 1, -1, 4]), 60) </s> remove from nose.tools import assert_equal, assert_raises
 </s> add import unittest </s> remove class TestMaxProfit(object):
 </s> add class TestMaxProfit(unittest.TestCase): </s> remove     "class TestProdThree(object):\n",
 </s> add     "class TestProdThree(unittest.TestCase):\n", </s> remove     "class TestProdThree(object):\n",
 </s> add     "class TestProdThree(unittest.TestCase):\n",
class TestProdThree(unittest.TestCase):
  from nose.tools import assert_equal, assert_raises
  
  
class TestProdThree(unittest.TestCase):
  
      def test_prod_three(self):
          solution = Solution()
          assert_raises(TypeError, solution.max_prod_three, None)
          assert_raises(ValueError, solution.max_prod_three, [1, 2])
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/prod_three/test_prod_three.py