  from nose.tools import assert_equal, assert_raises
  
  
  class TestAddDigits(object):
  
      def test_add_digits(self, func):
          assert_raises(TypeError, func, None)
          assert_raises(ValueError, func, -1)
          assert_equal(func(0), 0)
 
</s> remove         assert_raises(TypeError, func, None)
        assert_raises(ValueError, func, -1)
        assert_equal(func(0), 0)
        assert_equal(func(9), 9)
        assert_equal(func(138), 3)
        assert_equal(func(65536), 7) 
 </s> add         self.assertRaises(TypeError, func, None)
        self.assertRaises(ValueError, func, -1)
        self.assertEqual(func(0), 0)
        self.assertEqual(func(9), 9)
        self.assertEqual(func(138), 3)
        self.assertEqual(func(65536), 7)  </s> remove from nose.tools import assert_equal, assert_raises
 </s> add import unittest </s> remove     "class TestAddDigits(object):\n",
 </s> add     "class TestAddDigits(unittest.TestCase):\n", </s> remove     "class TestAddDigits(object):\n",
 </s> add     "class TestAddDigits(unittest.TestCase):\n", </s> remove     "        assert_raises(TypeError, func, None)\n",
    "        assert_raises(ValueError, func, -1)\n",
    "        assert_equal(func(0), 0)\n",
    "        assert_equal(func(9), 9)\n",
    "        assert_equal(func(138), 3)\n",
    "        assert_equal(func(65536), 7) \n",
 </s> add     "        self.assertRaises(TypeError, func, None)\n",
    "        self.assertRaises(ValueError, func, -1)\n",
    "        self.assertEqual(func(0), 0)\n",
    "        self.assertEqual(func(9), 9)\n",
    "        self.assertEqual(func(138), 3)\n",
    "        self.assertEqual(func(65536), 7) \n",
class TestAddDigits(unittest.TestCase):
  from nose.tools import assert_equal, assert_raises
  
  
class TestAddDigits(unittest.TestCase):
  
      def test_add_digits(self, func):
          assert_raises(TypeError, func, None)
          assert_raises(ValueError, func, -1)
          assert_equal(func(0), 0)
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for math_probability/ (#281) 
math_probability/add_digits/test_add_digits.py