  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, [])
          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)
          print('Success: test_max_profit')
  
  
  def main():
      test = TestMaxProfit()
 
</s> remove     "        assert_raises(TypeError, solution.find_max_profit, None)\n",
    "        assert_raises(ValueError, solution.find_max_profit, [])\n",
    "        assert_equal(solution.find_max_profit([8, 5, 3, 2, 1]), -1)\n",
    "        assert_equal(solution.find_max_profit([5, 3, 7, 4, 2, 6, 9]), 7)\n",
 </s> add     "        self.assertRaises(TypeError, solution.find_max_profit, None)\n",
    "        self.assertRaises(ValueError, solution.find_max_profit, [])\n",
    "        self.assertEqual(solution.find_max_profit([8, 5, 3, 2, 1]), -1)\n",
    "        self.assertEqual(solution.find_max_profit([5, 3, 7, 4, 2, 6, 9]), 7)\n", </s> remove     "        assert_raises(TypeError, solution.find_max_profit, None)\n",
    "        assert_raises(ValueError, solution.find_max_profit, [])\n",
    "        assert_equal(solution.find_max_profit([8, 5, 3, 2, 1]), -1)\n",
    "        assert_equal(solution.find_max_profit([5, 3, 7, 4, 2, 6, 9]), 7)\n",
 </s> add     "        self.assertRaises(TypeError, solution.find_max_profit, None)\n",
    "        self.assertRaises(ValueError, solution.find_max_profit, [])\n",
    "        self.assertEqual(solution.find_max_profit([8, 5, 3, 2, 1]), -1)\n",
    "        self.assertEqual(solution.find_max_profit([5, 3, 7, 4, 2, 6, 9]), 7)\n", </s> remove class TestMaxProfit(object):
 </s> add class TestMaxProfit(unittest.TestCase): </s> remove         assert_raises(TypeError, solution.mult_other_numbers, None)
        assert_equal(solution.mult_other_numbers([0]), [])
        assert_equal(solution.mult_other_numbers([0, 1]), [1, 0])
        assert_equal(solution.mult_other_numbers([0, 1, 2]), [2, 0, 0])
        assert_equal(solution.mult_other_numbers([1, 2, 3, 4]), [24, 12, 8, 6])
 </s> add         self.assertRaises(TypeError, solution.mult_other_numbers, None)
        self.assertEqual(solution.mult_other_numbers([0]), [])
        self.assertEqual(solution.mult_other_numbers([0, 1]), [1, 0])
        self.assertEqual(solution.mult_other_numbers([0, 1, 2]), [2, 0, 0])
        self.assertEqual(solution.mult_other_numbers([1, 2, 3, 4]), [24, 12, 8, 6]) </s> remove         assert_raises(TypeError, solution.find_content_children, None, None)
        assert_equal(solution.find_content_children([1, 2, 3], 
 </s> add         self.assertRaises(TypeError, solution.find_content_children, None, None)
        self.assertEqual(solution.find_content_children([1, 2, 3], 
        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)
  class TestMaxProfit(object):
  
      def test_max_profit(self):
          solution = Solution()
        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)
        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)
        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)
        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)
          print('Success: test_max_profit')
  
  
  def main():
      test = TestMaxProfit()
keep keep keep keep replace replace replace replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/max_profit/test_max_profit.py