      "        if string.count(char) > 1:\n",
      "            return False\n",
      "    return True\n",
      "\n",
      "test()"
     ]
    }
   ],
   "metadata": {
    "kernelspec": {
 
</s> remove     "test()"
 </s> add     "run_tests()" </s> remove     "test()"
 </s> add     "class Test(object):\n",
    "  def test_unique_chars(self):\n",
    "        assert_equal(unique_chars(''), True)\n",
    "        assert_equal(unique_chars('foo'), False)\n",
    "        assert_equal(unique_chars('bar'), True)    \n",
    "\n",
    "def run_tests():\n",
    "    test = Test()\n",
    "    test.test_unique_chars()\n",
    "\n",
    "run_tests()" </s> remove     "def test():\n",
    "    print(unique_chars(''))\n",
    "    print(unique_chars('foo'))\n",
    "    print(unique_chars('bar'))\n",
 </s> add     "from nose.tools import assert_equal\n",
    "run_tests()"
      "        if string.count(char) > 1:\n",
      "            return False\n",
      "    return True\n",
      "\n",
    "run_tests()"
     ]
    }
   ],
   "metadata": {
    "kernelspec": {
keep keep keep keep replace keep keep keep keep keep
 Updated tests to use nose. 
arrays-strings/unique_chars.ipynb