Пример #1
0
    def test_logfiles_path(self):
        datas = ['tsung.log', '*****@*****.**',
                 'tsung-fullstats.log', '*****@*****.**',
                 'tsung.dump', 'osmpule.xml',
                 'match.log', '*****@*****.**']
        result = mhk.logfiles(datas, "/tmp")

        attend = ['/tmp/[email protected]', '/tmp/[email protected]']

        self.assertEqual(result, attend)
Пример #2
0
 def test_logfiles_empty(self):
     datas = []
     result = mhk.logfiles(datas, "")
     attend = []
     self.assertEqual(result, attend)