예제 #1
0
파일: test_tl.py 프로젝트: dargad/tl
 def test_ua_entry(self):
     '''testing a UA entry'''
     tl.log_activity('ua', 'This is one entry')
     line = self._get_last_log_line().strip()
     self.assertTrue(line.endswith('L3 / L3 support : This is one entry'))
예제 #2
0
파일: test_tl.py 프로젝트: dargad/tl
 def test_absolutely_not_logged(self):
     '''testing argument with three asterix'''
     tl.log_activity('lunch***')
     line = self._get_last_log_line().strip()
     self.assertTrue(line.endswith('lunch***'))
예제 #3
0
파일: test_tl.py 프로젝트: dargad/tl
 def test_new(self):
     '''testing only 'new' argument'''
     tl.log_activity('new', 'Arrived')
     line = self._get_last_log_line().strip()
     self.assertTrue(line.endswith('Arrived'))
예제 #4
0
 def test_absolutely_not_logged(self):
     '''testing argument with three asterix'''
     tl.LogFile = self.LogFile
     tl.log_activity('lunch***')
     line = self._get_last_log_line().strip()
     self.assertTrue(line.endswith('lunch***'))
예제 #5
0
 def test_ua_entry(self):
     '''testing a UA entry'''
     tl.LogFile = self.LogFile
     tl.log_activity('ua', 'This is one entry')
     line = self._get_last_log_line().strip()
     self.assertTrue(line.endswith('L3 / L3 support : This is one entry'))
예제 #6
0
 def test_new_entry(self):
     '''testing only 'new' argument'''
     tl.LogFile = self.LogFile
     tl.log_activity('new', 'Arrived')
     line = self._get_last_log_line().strip()
     self.assertTrue(line.endswith('Arrived'))
예제 #7
0
 def test_not_logged(self):
     '''calling tl with argument with two asterix'''
     tl.log_activity('lunch**')
     line = self._get_last_log_line().strip()
     self.assertTrue(line.endswith('lunch**'))