summaryrefslogtreecommitdiff
path: root/test/test_data.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-04-17 07:33:24 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-04-17 07:33:24 -0400
commitd979dfdf4a06cd2e95843eeb89970aa5af7b6b16 (patch)
tree8a075a55b16f9f90dd9fcd7184c1fa1a3c9f0dd5 /test/test_data.py
parent102606f948d1ea497bb0feadf9aea39954fd7ec5 (diff)
downloadpython-coveragepy-d979dfdf4a06cd2e95843eeb89970aa5af7b6b16.tar.gz
Refactor the file name stuff in CoverageData, and start its own test file.
Diffstat (limited to 'test/test_data.py')
-rw-r--r--test/test_data.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_data.py b/test/test_data.py
new file mode 100644
index 0000000..557f775
--- /dev/null
+++ b/test/test_data.py
@@ -0,0 +1,10 @@
+"""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(), {})