Deleted
Added
test_usr1.py (1437:1990c369a0b9) | test_usr1.py (1453:71af60a59338) |
---|---|
1import os 2import unittest 3from subprocess import call 4from unit.applications.lang.python import TestApplicationPython 5 6 7class TestUSR1(TestApplicationPython): 8 prerequisites = {'modules': ['python']} --- 41 unchanged lines hidden (view full) --- 50 self.assertIsNone( 51 self.search_in_log(r'/usr1', log_new), 'rename new 2' 52 ) 53 54 def test_usr1_unit_log(self): 55 self.load('log_body') 56 57 log_new = 'new.log' | 1import os 2import unittest 3from subprocess import call 4from unit.applications.lang.python import TestApplicationPython 5 6 7class TestUSR1(TestApplicationPython): 8 prerequisites = {'modules': ['python']} --- 41 unchanged lines hidden (view full) --- 50 self.assertIsNone( 51 self.search_in_log(r'/usr1', log_new), 'rename new 2' 52 ) 53 54 def test_usr1_unit_log(self): 55 self.load('log_body') 56 57 log_new = 'new.log' |
58 log_path = self.testdir + '/' + 'unit.log' | 58 log_path = self.testdir + '/unit.log' |
59 log_path_new = self.testdir + '/' + log_new 60 61 os.rename(log_path, log_path_new) 62 63 body = 'body_for_a_log_new' 64 self.assertEqual(self.post(body=body)['status'], 200) 65 66 self.assertIsNotNone( --- 28 unchanged lines hidden --- | 59 log_path_new = self.testdir + '/' + log_new 60 61 os.rename(log_path, log_path_new) 62 63 body = 'body_for_a_log_new' 64 self.assertEqual(self.post(body=body)['status'], 200) 65 66 self.assertIsNotNone( --- 28 unchanged lines hidden --- |