  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])
          assert_equal(solution.max_prod_three([5, -2, 3]), -30)
          assert_equal(solution.max_prod_three([5, -2, 3, 1, -1, 4]), 60)
          print('Success: test_prod_three')
  
  
  def main():
      test = TestProdThree()
 
</s> remove     "        assert_raises(TypeError, solution.max_prod_three, None)\n",
    "        assert_raises(ValueError, solution.max_prod_three, [1, 2])\n",
    "        assert_equal(solution.max_prod_three([5, -2, 3]), -30)\n",
    "        assert_equal(solution.max_prod_three([5, -2, 3, 1, -1, 4]), 60)\n",
 </s> add     "        self.assertRaises(TypeError, solution.max_prod_three, None)\n",
    "        self.assertRaises(ValueError, solution.max_prod_three, [1, 2])\n",
    "        self.assertEqual(solution.max_prod_three([5, -2, 3]), -30)\n",
    "        self.assertEqual(solution.max_prod_three([5, -2, 3, 1, -1, 4]), 60)\n", </s> remove     "        assert_raises(TypeError, solution.max_prod_three, None)\n",
    "        assert_raises(ValueError, solution.max_prod_three, [1, 2])\n",
    "        assert_equal(solution.max_prod_three([5, -2, 3]), -30)\n",
    "        assert_equal(solution.max_prod_three([5, -2, 3, 1, -1, 4]), 60)\n",
 </s> add     "        self.assertRaises(TypeError, solution.max_prod_three, None)\n",
    "        self.assertRaises(ValueError, solution.max_prod_three, [1, 2])\n",
    "        self.assertEqual(solution.max_prod_three([5, -2, 3]), -30)\n",
    "        self.assertEqual(solution.max_prod_three([5, -2, 3, 1, -1, 4]), 60)\n", </s> remove class TestProdThree(object):
 </s> add class TestProdThree(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     "class TestProdThree(object):\n",
 </s> add     "class TestProdThree(unittest.TestCase):\n",
        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)
  class TestProdThree(object):
  
      def test_prod_three(self):
          solution = Solution()
        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)
        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)
        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)
        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)
          print('Success: test_prod_three')
  
  
  def main():
      test = TestProdThree()
keep keep keep keep replace replace replace replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/prod_three/test_prod_three.py