      "# %load test_is_power_of_two.py\n",
      "from nose.tools import assert_equal, assert_raises\n",
      "\n",
      "\n",
      "class TestSolution(object):\n",
      "\n",
      "    def test_is_power_of_two(self):\n",
      "        solution = Solution()\n",
      "        assert_raises(TypeError, solution.is_power_of_two, None)\n",
      "        assert_equal(solution.is_power_of_two(0), False)\n",
 
</s> remove     "class TestSolution(object):\n",
 </s> add     "class TestSolution(unittest.TestCase):\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.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     "from nose.tools import assert_equal, assert_raises\n",
 </s> add     "import unittest\n", </s> remove     "from nose.tools import assert_equal, assert_raises\n",
 </s> add     "import unittest\n",
    "class TestSolution(unittest.TestCase):\n",
      "# %load test_is_power_of_two.py\n",
      "from nose.tools import assert_equal, assert_raises\n",
      "\n",
      "\n",
    "class TestSolution(unittest.TestCase):\n",
      "\n",
      "    def test_is_power_of_two(self):\n",
      "        solution = Solution()\n",
      "        assert_raises(TypeError, solution.is_power_of_two, None)\n",
      "        assert_equal(solution.is_power_of_two(0), False)\n",
keep keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for math_probability/ (#281) 
math_probability/power_two/power_two_challenge.ipynb