Пример #1
0
    def test_write_html_file(self):
        "Write html and make sure it gets cleaned up"""

        filename1='/tmp/test.html'
        self._paths_to_clean_up = [filename1]
        
        write_html_file('Test','/tmp/test.html')
        
        self.assertTrue(exists(filename1),'The file was not created in \
the appropriate location')

        self._paths_to_clean_up = [filename1]
Пример #2
0
    def test_write_html_file(self):
        "Write html and make sure it gets cleaned up" ""

        filename1 = "/tmp/test.html"
        self._paths_to_clean_up = [filename1]

        write_html_file("Test", "/tmp/test.html")

        self.assertTrue(
            exists(filename1),
            "The file was not created in \
the appropriate location",
        )

        self._paths_to_clean_up = [filename1]