  from nose.tools import assert_equal, assert_raises
  
  
  class TestMath(object):
  
      def test_check_prime(self):
          math = Math()
          assert_raises(TypeError, math.check_prime, None)
          assert_raises(TypeError, math.check_prime, 98.6)
 
</s> remove         assert_raises(TypeError, math.check_prime, None)
        assert_raises(TypeError, math.check_prime, 98.6)
        assert_equal(math.check_prime(0), False)
        assert_equal(math.check_prime(1), False)
        assert_equal(math.check_prime(97), True)
 </s> add         self.assertRaises(TypeError, math.check_prime, None)
        self.assertRaises(TypeError, math.check_prime, 98.6)
        self.assertEqual(math.check_prime(0), False)
        self.assertEqual(math.check_prime(1), False)
        self.assertEqual(math.check_prime(97), True) </s> remove class TestMath(object):
 </s> add class TestMath(unittest.TestCase): </s> remove from nose.tools import assert_equal, assert_raises
 </s> add import unittest </s> remove     "class TestMath(object):\n",
 </s> add     "class TestMath(unittest.TestCase):\n", </s> remove     "class TestMath(object):\n",
 </s> add     "class TestMath(unittest.TestCase):\n",
class TestMath(unittest.TestCase):
  from nose.tools import assert_equal, assert_raises
  
  
class TestMath(unittest.TestCase):
  
      def test_check_prime(self):
          math = Math()
          assert_raises(TypeError, math.check_prime, None)
          assert_raises(TypeError, math.check_prime, 98.6)
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for math_probability/ (#281) 
math_probability/check_prime/test_check_prime.py