@@ -0,0 +1,1814 @@
+# coding: utf8%0A# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0%0A# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt%0A%0A%22%22%22Test text-based summary reporter for coverage.py%22%22%22%0A%0Aimport collections%0Aimport unittest%0Aimport os.path%0Atry:%0A    from cStringIO import StringIO%0Aexcept ImportError:%0A    from StringIO import StringIO%0Afrom coverage import summary, data, control, config%0A%0ALINES_1 = %7B%0A    __file__: %7B-1: 1, 7: 1%7D,%0A    os.path.join(os.path.dirname(__file__), 'helpers.py'): %7B-1: 1, 7: 1%7D,%0A%7D%0A%0A%0Aclass TestSummaryReporterConfiguration(unittest.TestCase):%0A    def get_coverage_data(self, lines=LINES_1):%0A        %22%22%22Get a CoverageData object that includes the requested lines.%22%22%22%0A        data1 = data.CoverageData()%0A        data1.add_lines(lines)%0A        return data1%0A%0A    def get_summary_text(self, coverage_data, options):%0A        %22%22%22Get text output from the SummaryReporter.%22%22%22%0A        cov = control.Coverage()%0A        cov.data = coverage_data%0A        printer = summary.SummaryReporter(cov, options)%0A        destination = StringIO()%0A        printer.report(%5B%5D, destination)%0A        return destination.getvalue()%0A%0A    def test_defaults(self):%0A        %22%22%22Run the report with no configuration options.%22%22%22%0A        data = self.get_coverage_data()%0A        opts = config.CoverageConfig()%0A        report = self.get_summary_text(data, opts)%0A        self.assertNotIn('Missing', report)%0A        self.assertNotIn('Branch', report)%0A%0A    def test_print_missing(self):%0A        %22%22%22Run the report printing the missing lines.%22%22%22%0A        data = self.get_coverage_data()%0A        opts = config.CoverageConfig()%0A        opts.from_args(show_missing=True)%0A        report = self.get_summary_text(data, opts)%0A        self.assertIn('Missing', report)%0A        self.assertNotIn('Branch', report)%0A

Add unit-level test for the SummaryReporter Tests configuration of the report method of SummaryReader