  from nose.tools import assert_equal, assert_raises
  
  
  class TestMath(object):
  
      def test_generate_primes(self):
          prime_generator = PrimeGenerator()
          assert_raises(TypeError, prime_generator.generate_primes, None)
          assert_raises(TypeError, prime_generator.generate_primes, 98.6)
 
</s> remove         assert_raises(TypeError, prime_generator.generate_primes, None)
        assert_raises(TypeError, prime_generator.generate_primes, 98.6)
        assert_equal(prime_generator.generate_primes(20), [False, False, True, 
 </s> add         self.assertRaises(TypeError, prime_generator.generate_primes, None)
        self.assertRaises(TypeError, prime_generator.generate_primes, 98.6)
        self.assertEqual(prime_generator.generate_primes(20), [False, False, 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_generate_primes(self):
          prime_generator = PrimeGenerator()
          assert_raises(TypeError, prime_generator.generate_primes, None)
          assert_raises(TypeError, prime_generator.generate_primes, 98.6)
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for math_probability/ (#281) 
math_probability/generate_primes/test_generate_primes.py