  from nose.tools import assert_equal
  
  
  class TestFoo(object):
  
      def test_foo(self):
 
</s> remove class TestFoo(object):
 </s> add class TestFoo(unittest.TestCase): </s> remove         assert_equal(foo(None), None)
        assert_equal(foo(0), 0)
        assert_equal(foo('bar'), 'bar')
 </s> add         self.assertEqual(foo(None), None)
        self.assertEqual(foo(0), 0)
        self.assertEqual(foo('bar'), 'bar') </s> remove     "from nose.tools import assert_equal\n",
 </s> add     "import unittest\n", </s> remove     "class TestFoo(object):\n",
 </s> add     "class TestFoo(unittest.TestCase):\n", </s> remove     "        assert_equal(foo(None), None)\n",
    "        assert_equal(foo(0), 0)\n",
    "        assert_equal(foo('bar'), 'bar')\n",
 </s> add     "        self.assertEqual(foo(None), None)\n",
    "        self.assertEqual(foo(0), 0)\n",
    "        self.assertEqual(foo('bar'), 'bar')\n",
import unittest
import unittest
  
  
  class TestFoo(object):
  
      def test_foo(self):
replace keep keep keep keep keep
 #273: Remove nose dependency for templates/ (#284) 
templates/test_foo.py