Пример #1
0
    def setUp(self):
        """
        Creates the directory with some files in it.
        """
        UnitTestBase.setUp(self)
        self._files = ["a.txt", "b.html", "c.txtl", "español.txt"]
        os.mkdir(self.get_ext_dir())

        for mem in self._files:
            f = open(os.path.join(self.get_ext_dir(), mem), "w")
            f.write("lorem ipsum")
            f.close()
Пример #2
0
    def setUp(self):
        """
        Creates the directory with some files in it.
        """
        UnitTestBase.setUp(self)
        self._files = ["a.txt", "b.html", "c.txtl", "español.txt"]
        os.mkdir(self.get_ext_dir())

        for mem in self._files:
            f = open(os.path.join(self.get_ext_dir(), mem), "w")
            f.write("lorem ipsum")
            f.close()
Пример #3
0
 def setUp(self):
     UnitTestBase.setUp(self)
Пример #4
0
 def tearDown(self):
     UnitTestBase.tearDown(self)
     if "_config" in tools.__dict__:
         del tools.__dict__["_config"]
Пример #5
0
 def setUp(self):
     UnitTestBase.setUp(self)
     tools._config = {}
Пример #6
0
 def setUp(self):
     UnitTestBase.setUp(self)
Пример #7
0
 def tearDown(self):
     UnitTestBase.tearDown(self)
     if "_config" in tools.__dict__:
         del tools.__dict__["_config"]
Пример #8
0
 def setUp(self):
     UnitTestBase.setUp(self)
     tools._config = {}