示例#1
0
    def testLogfileName(self):
        """Test the function that determines the logfile path"""
        logfiledir = '/foo/bar/baz'

        self.assertEquals(wrap.getlogfilepath(logfiledir),
                          '/foo/bar/baz/' + wrap.getlogin() + '.log')
示例#2
0
 def testLogin(self):
     """Test if can retrieve login name"""
     # This is actually quite difficult
     self.assertEquals(wrap.getlogin(),self.login)