      "class TestSolution(object):\n",
      "\n",
      "    def test_longest_substr(self):\n",
      "        solution = Solution()\n",
      "        assert_raises(TypeError, solution.longest_substr, None)\n",
      "        assert_equal(solution.longest_substr('', k=3), 0)\n",
      "        assert_equal(solution.longest_substr('abcabcdefgghiij', k=3), 6)\n",
      "        assert_equal(solution.longest_substr('abcabcdefgghighij', k=3), 7)\n",
      "        print('Success: test_longest_substr')\n",
      "\n",
      "\n",
      "def main():\n",
      "    test = TestSolution()\n",
 
</s> remove         assert_raises(TypeError, solution.longest_substr, None)
        assert_equal(solution.longest_substr('', k=3), 0)
        assert_equal(solution.longest_substr('abcabcdefgghiij', k=3), 6)
        assert_equal(solution.longest_substr('abcabcdefgghighij', k=3), 7)
 </s> add         self.assertRaises(TypeError, solution.longest_substr, None)
        self.assertEqual(solution.longest_substr('', k=3), 0)
        self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)
        self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7) </s> remove     "class TestSolution(object):\n",
 </s> add     "class TestSolution(unittest.TestCase):\n", </s> remove class TestSolution(object):
 </s> add class TestSolution(unittest.TestCase): </s> remove     "        assert_equal(solution.max_xor(10, 15), 7)\n",
 </s> add     "        self.assertEqual(solution.max_xor(10, 15), 7)\n", </s> remove     "        assert_equal(solution.max_xor(10, 15), 7)\n",
 </s> add     "        self.assertEqual(solution.max_xor(10, 15), 7)\n",
    "        self.assertRaises(TypeError, solution.longest_substr, None)\n",
    "        self.assertEqual(solution.longest_substr('', k=3), 0)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7)\n",
      "class TestSolution(object):\n",
      "\n",
      "    def test_longest_substr(self):\n",
      "        solution = Solution()\n",
    "        self.assertRaises(TypeError, solution.longest_substr, None)\n",
    "        self.assertEqual(solution.longest_substr('', k=3), 0)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7)\n",
    "        self.assertRaises(TypeError, solution.longest_substr, None)\n",
    "        self.assertEqual(solution.longest_substr('', k=3), 0)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7)\n",
    "        self.assertRaises(TypeError, solution.longest_substr, None)\n",
    "        self.assertEqual(solution.longest_substr('', k=3), 0)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7)\n",
    "        self.assertRaises(TypeError, solution.longest_substr, None)\n",
    "        self.assertEqual(solution.longest_substr('', k=3), 0)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghiij', k=3), 6)\n",
    "        self.assertEqual(solution.longest_substr('abcabcdefgghighij', k=3), 7)\n",
      "        print('Success: test_longest_substr')\n",
      "\n",
      "\n",
      "def main():\n",
      "    test = TestSolution()\n",
keep keep keep keep replace replace replace replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/longest_substr_k_distinct/longest_substr_challenge.ipynb