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'))
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***'))
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'))
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***'))
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'))
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'))
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**'))