Пример #1
0
 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
 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
 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**'))