from __future__ import absolute_import, print_function

# Standard library
import inspect
import unittest

from cinspect import getfile, getsource


class TestHelloModule(unittest.TestCase):

    def test_patching_inspect_should_work(self):
        # Given
        inspect.getsource = getsource
        inspect.getfile = getfile

        # When
        t = getfile(unittest)
        s = getsource(unittest.main)

        # Then
        self.assertGreater(len(t), 0)
        self.assertGreater(len(s), 0)

from __future__ import absolute_import, print_function

# Standard library
import inspect
import unittest

from cinspect import getfile, getsource


class TestPatching(unittest.TestCase):

    def test_patching_inspect_should_work(self):
        # Given
        inspect.getsource = getsource
        inspect.getfile = getfile

        # When
        t = getfile(unittest)
        s = getsource(unittest.main)

        # Then
        self.assertGreater(len(t), 0)
        self.assertGreater(len(s), 0)

Fix copy paste bug in test class name.
Fix copy paste bug in test class name.

  from __future__ import absolute_import, print_function
  
  # Standard library
  import inspect
  import unittest
  
  from cinspect import getfile, getsource
  
  
- class TestHelloModule(unittest.TestCase):
+ class TestPatching(unittest.TestCase):
  
      def test_patching_inspect_should_work(self):
          # Given
          inspect.getsource = getsource
          inspect.getfile = getfile
  
          # When
          t = getfile(unittest)
          s = getsource(unittest.main)
  
          # Then
          self.assertGreater(len(t), 0)
          self.assertGreater(len(s), 0)
  
Fix copy paste bug in test class name.
## Code Before:
from __future__ import absolute_import, print_function

# Standard library
import inspect
import unittest

from cinspect import getfile, getsource


class TestHelloModule(unittest.TestCase):

    def test_patching_inspect_should_work(self):
        # Given
        inspect.getsource = getsource
        inspect.getfile = getfile

        # When
        t = getfile(unittest)
        s = getsource(unittest.main)

        # Then
        self.assertGreater(len(t), 0)
        self.assertGreater(len(s), 0)

## Instruction:
Fix copy paste bug in test class name.
## Code After:
from __future__ import absolute_import, print_function

# Standard library
import inspect
import unittest

from cinspect import getfile, getsource


class TestPatching(unittest.TestCase):

    def test_patching_inspect_should_work(self):
        # Given
        inspect.getsource = getsource
        inspect.getfile = getfile

        # When
        t = getfile(unittest)
        s = getsource(unittest.main)

        # Then
        self.assertGreater(len(t), 0)
        self.assertGreater(len(s), 0)
