  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)
          assert_equal(math.check_prime(0), False)
          assert_equal(math.check_prime(1), False)
          assert_equal(math.check_prime(97), True)
          print('Success: test_check_prime')
  
  
  def main():
      test = TestMath()
 
</s> remove class TestMath(object):
 </s> add class TestMath(unittest.TestCase): </s> remove         assert_raises(TypeError, solution.is_power_of_two, None)
        assert_equal(solution.is_power_of_two(0), False)
        assert_equal(solution.is_power_of_two(1), True)
        assert_equal(solution.is_power_of_two(2), True)
        assert_equal(solution.is_power_of_two(15), False)
        assert_equal(solution.is_power_of_two(16), True)
 </s> add         self.assertRaises(TypeError, solution.is_power_of_two, None)
        self.assertEqual(solution.is_power_of_two(0), False)
        self.assertEqual(solution.is_power_of_two(1), True)
        self.assertEqual(solution.is_power_of_two(2), True)
        self.assertEqual(solution.is_power_of_two(15), False)
        self.assertEqual(solution.is_power_of_two(16), True) </s> remove     "        assert_raises(TypeError, math.check_prime, None)\n",
    "        assert_raises(TypeError, math.check_prime, 98.6)\n",
    "        assert_equal(math.check_prime(0), False)\n",
    "        assert_equal(math.check_prime(1), False)\n",
    "        assert_equal(math.check_prime(97), True)\n",
 </s> add     "        self.assertRaises(TypeError, math.check_prime, None)\n",
    "        self.assertRaises(TypeError, math.check_prime, 98.6)\n",
    "        self.assertEqual(math.check_prime(0), False)\n",
    "        self.assertEqual(math.check_prime(1), False)\n",
    "        self.assertEqual(math.check_prime(97), True)\n", </s> remove     "        assert_raises(TypeError, math.check_prime, None)\n",
    "        assert_raises(TypeError, math.check_prime, 98.6)\n",
    "        assert_equal(math.check_prime(0), False)\n",
    "        assert_equal(math.check_prime(1), False)\n",
    "        assert_equal(math.check_prime(97), True)\n",
 </s> add     "        self.assertRaises(TypeError, math.check_prime, None)\n",
    "        self.assertRaises(TypeError, math.check_prime, 98.6)\n",
    "        self.assertEqual(math.check_prime(0), False)\n",
    "        self.assertEqual(math.check_prime(1), False)\n",
    "        self.assertEqual(math.check_prime(97), True)\n", </s> remove class TestSolution(object):
 </s> add class TestSolution(unittest.TestCase):
        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)
  class TestMath(object):
  
      def test_check_prime(self):
          math = Math()
        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)
        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)
        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)
        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)
        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)
          print('Success: test_check_prime')
  
  
  def main():
      test = TestMath()
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 #273: Remove nose dependency for math_probability/ (#281) 
math_probability/check_prime/test_check_prime.py