"""Tests for coverage.data"""

import unittest
from coverage.data import CoverageData

class DataTest(unittest.TestCase):
    def test_reading(self):
        covdata = CoverageData()
        covdata.read()
        self.assertEqual(covdata.summary(), {})

"""Tests for coverage.data"""

from coverage.data import CoverageData
from coveragetest import CoverageTest

class DataTest(CoverageTest):
    def test_reading(self):
        covdata = CoverageData()
        covdata.read()
        self.assertEqual(covdata.summary(), {})

Use our CoverageTest base class to get isolation (in a new directory) for the data tests.
Use our CoverageTest base class to get isolation (in a new directory) for the data tests.

  """Tests for coverage.data"""
  
- import unittest
  from coverage.data import CoverageData
+ from coveragetest import CoverageTest
  
- class DataTest(unittest.TestCase):
+ class DataTest(CoverageTest):
      def test_reading(self):
          covdata = CoverageData()
          covdata.read()
          self.assertEqual(covdata.summary(), {})
  
Use our CoverageTest base class to get isolation (in a new directory) for the data tests.
## Code Before:
"""Tests for coverage.data"""

import unittest
from coverage.data import CoverageData

class DataTest(unittest.TestCase):
    def test_reading(self):
        covdata = CoverageData()
        covdata.read()
        self.assertEqual(covdata.summary(), {})

## Instruction:
Use our CoverageTest base class to get isolation (in a new directory) for the data tests.
## Code After:
"""Tests for coverage.data"""

from coverage.data import CoverageData
from coveragetest import CoverageTest

class DataTest(CoverageTest):
    def test_reading(self):
        covdata = CoverageData()
        covdata.read()
        self.assertEqual(covdata.summary(), {})
