  
  class TestFoo(object):
  
      def test_foo(self):
          assert_equal(foo(None), None)
          assert_equal(foo(0), 0)
          assert_equal(foo('bar'), 'bar')
          print('Success: test_foo')
  
  def main():
      test = TestFoo()
      test.test_foo()
 
</s> remove class TestFoo(object):
 </s> add class TestFoo(unittest.TestCase): </s> remove     main() </s> add  </s> remove from nose.tools import assert_equal
 </s> add import unittest </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", </s> remove     "class TestFoo(object):\n",
 </s> add     "class TestFoo(unittest.TestCase):\n",
        self.assertEqual(foo(None), None)
        self.assertEqual(foo(0), 0)
        self.assertEqual(foo('bar'), 'bar')
  
  class TestFoo(object):
  
      def test_foo(self):
        self.assertEqual(foo(None), None)
        self.assertEqual(foo(0), 0)
        self.assertEqual(foo('bar'), 'bar')
        self.assertEqual(foo(None), None)
        self.assertEqual(foo(0), 0)
        self.assertEqual(foo('bar'), 'bar')
        self.assertEqual(foo(None), None)
        self.assertEqual(foo(0), 0)
        self.assertEqual(foo('bar'), 'bar')
          print('Success: test_foo')
  
  def main():
      test = TestFoo()
      test.test_foo()
keep keep keep keep replace replace replace keep keep keep keep keep
 #273: Remove nose dependency for templates/ (#284) 
templates/test_foo.py