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