
import unittest


class TestFunctions(unittest.TestCase):

    def first(self):
        assertEqual('test', 'test')

    def second(self):
        """second test"""
        assertEqual('2','2')



import unittest


class TestFunctions(unittest.TestCase):

    def first(self):
        self.assertEqual('test', 'test')

    def second(self):
        """second test"""
        self.assertEqual('2','2')


Add self to test cases
Add self to test cases

Change-Id: Ib8a8fea97fb7390613a5521103f0f9d31615f262

  
  import unittest
  
  
  class TestFunctions(unittest.TestCase):
  
      def first(self):
-         assertEqual('test', 'test')
+         self.assertEqual('test', 'test')
  
      def second(self):
          """second test"""
-         assertEqual('2','2')
+         self.assertEqual('2','2')
  
  
Add self to test cases
## Code Before:

import unittest


class TestFunctions(unittest.TestCase):

    def first(self):
        assertEqual('test', 'test')

    def second(self):
        """second test"""
        assertEqual('2','2')


## Instruction:
Add self to test cases
## Code After:

import unittest


class TestFunctions(unittest.TestCase):

    def first(self):
        self.assertEqual('test', 'test')

    def second(self):
        """second test"""
        self.assertEqual('2','2')

