Example #1
0
File: test_tl.py Project: 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'))
Example #2
0
File: test_tl.py Project: 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***'))
Example #3
0
File: test_tl.py Project: 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'))
Example #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***'))
Example #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'))
Example #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'))
Example #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**'))