Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(39)  |  Call(39)  |  Derive(0)  |  Import(0)

src/c/o/coveragepy-HEAD/tests/test_process.py   coveragepy(Download)
            """)
 
        self.assert_doesnt_exist(".coverage")
        self.run_command("coverage -x mycode.py")
        self.assert_exists(".coverage")
            """)
 
        self.assert_doesnt_exist(".coverage")
        out = self.run_command("coverage -x mycode.py")
        self.assert_exists(".coverage")
        out = self.run_command("coverage -x -p b_or_c.py b")
        self.assertEqual(out, 'done\n')
        self.assert_doesnt_exist(".coverage")
 
        out = self.run_command("coverage -x -p b_or_c.py c")
        self.assertEqual(out, 'done\n')
        self.assert_doesnt_exist(".coverage")
        out = self.run_command("coverage -x -p b_or_c.py b")
        self.assertEqual(out, 'done\n')
        self.assert_doesnt_exist(".coverage")
        self.assertEqual(self.number_of_data_files(), 1)
 

src/c/o/coverage-3.7.1/tests/test_process.py   coverage(Download)
            """)
 
        self.assert_doesnt_exist(".coverage")
        self.run_command("coverage -x mycode.py")
        self.assert_exists(".coverage")
            """)
 
        self.assert_doesnt_exist(".coverage")
        out = self.run_command("coverage -x mycode.py")
        self.assert_exists(".coverage")
        out = self.run_command("coverage -x -p b_or_c.py b")
        self.assertEqual(out, 'done\n')
        self.assert_doesnt_exist(".coverage")
 
        out = self.run_command("coverage -x -p b_or_c.py c")
        self.assertEqual(out, 'done\n')
        self.assert_doesnt_exist(".coverage")
        out = self.run_command("coverage -x -p b_or_c.py b")
        self.assertEqual(out, 'done\n')
        self.assert_doesnt_exist(".coverage")
        self.assertEqual(self.number_of_data_files(), 1)
 

src/c/o/coveragepy-HEAD/tests/test_xml.py   coveragepy(Download)
    def test_argument_affects_xml_placement(self):
        self.run_mycode()
        self.run_command("coverage xml -o put_it_there.xml")
        self.assert_doesnt_exist("coverage.xml")
        self.assert_exists("put_it_there.xml")
 
    def test_config_file_directory_does_not_exist(self):
        self.run_mycode()
        self.run_command("coverage xml -o nonexistent/put_it_there.xml")
        self.assert_doesnt_exist("coverage.xml")
    def test_config_file_directory_does_not_exist(self):
        self.run_mycode()
        self.run_command("coverage xml -o nonexistent/put_it_there.xml")
        self.assert_doesnt_exist("coverage.xml")
        self.assert_doesnt_exist("put_it_there.xml")
    def test_config_affects_xml_placement(self):
        self.run_mycode()
        self.make_file(".coveragerc", "[xml]\noutput = xml.out\n")
        self.run_command("coverage xml")
        self.assert_doesnt_exist("coverage.xml")
    def test_no_data(self):
        # https://bitbucket.org/ned/coveragepy/issue/210
        self.run_command("coverage xml")
        self.assert_doesnt_exist("coverage.xml")
 

src/c/o/coveragepy-HEAD/tests/test_testing.py   coveragepy(Download)
    def test_file_exists(self):
        self.make_file("whoville.txt", "We are here!")
        self.assert_exists("whoville.txt")
        self.assert_doesnt_exist("shadow.txt")
        with self.assertRaises(AssertionError):
            self.assert_doesnt_exist("whoville.txt")

src/c/o/coverage-3.7.1/tests/test_xml.py   coverage(Download)
    def test_argument_affects_xml_placement(self):
        self.run_mycode()
        self.run_command("coverage xml -o put_it_there.xml")
        self.assert_doesnt_exist("coverage.xml")
        self.assert_exists("put_it_there.xml")
    def test_config_affects_xml_placement(self):
        self.run_mycode()
        self.make_file(".coveragerc", "[xml]\noutput = xml.out\n")
        self.run_command("coverage xml")
        self.assert_doesnt_exist("coverage.xml")
    def test_no_data(self):
        # https://bitbucket.org/ned/coveragepy/issue/210
        self.run_command("coverage xml")
        self.assert_doesnt_exist("coverage.xml")
 

src/c/o/coveragepy-HEAD/tests/test_html.py   coveragepy(Download)
        self.assert_exists("htmlcov/index.html")
        # this would be better as a glob, if the html layout changes:
        self.assert_doesnt_exist("htmlcov/innocuous.html")
 
    def test_dothtml_not_python(self):

src/c/o/coverage-3.7.1/tests/test_html.py   coverage(Download)
        self.assert_exists("htmlcov/index.html")
        # this would be better as a glob, if the html layout changes:
        self.assert_doesnt_exist("htmlcov/innocuous.html")
 
    def test_dothtml_not_python(self):

src/c/o/coveragepy-HEAD/tests/test_coverage.py   coveragepy(Download)
    def test_no_data_to_report_on_annotate(self):
        # Reporting with no data produces a nice message and no output dir.
        with self.assertRaisesRegex(CoverageException, "No data to report."):
            self.command_line("annotate -d ann")
        self.assert_doesnt_exist("ann")
    def test_no_data_to_report_on_html(self):
        # Reporting with no data produces a nice message and no output dir.
        with self.assertRaisesRegex(CoverageException, "No data to report."):
            self.command_line("html -d htmlcov")
        self.assert_doesnt_exist("htmlcov")
    def test_no_data_to_report_on_xml(self):
        # Reporting with no data produces a nice message.
        with self.assertRaisesRegex(CoverageException, "No data to report."):
            self.command_line("xml")
        self.assert_doesnt_exist("coverage.xml")

src/c/o/coverage-3.7.1/tests/test_misc.py   coverage(Download)
    def test_remove_actual_file(self):
        # it really does remove a file that does exist.
        self.make_file("here.txt", "We are here, we are here, we are here!")
        file_be_gone("here.txt")
        self.assert_doesnt_exist("here.txt")

src/c/o/coverage-3.7.1/tests/test_testing.py   coverage(Download)
    def test_file_exists(self):
        self.make_file("whoville.txt", "We are here!")
        self.assert_exists("whoville.txt")
        self.assert_doesnt_exist("shadow.txt")
        self.assertRaises(

  1 | 2  Next