def test_upstart(self, upload_template, is_systemd): upstart() self.assertTrue(upload_template.called) self.assertTrue( str(upload_template.call_args).find("'upstart.conf.tpl'") > 0) self.assertTrue( str(upload_template.call_args).find("'/etc/init/circus.conf'") > 0) self.assertTrue(str(upload_template.call_args) .find("template_dir='lib_path/templates'") > 0) self.assertTrue(str(upload_template.call_args).find("user='******'") > 0)
def test_upstart(self, upload_template, is_systemd): upstart() self.assertTrue(upload_template.called) self.assertTrue( str(upload_template.call_args).find("'upstart.conf.tpl'") > 0) self.assertTrue( str(upload_template.call_args).find("'/etc/init/circus.conf'") > 0) self.assertTrue( str(upload_template.call_args).find( "template_dir='lib_path/templates'") > 0) self.assertTrue(str(upload_template.call_args).find("user='******'") > 0)
def test_upstart_systemd(self, upload_template, is_systemd, mock_reload_daemon): upstart() self.assertTrue(upload_template.called) self.assertTrue( str(upload_template.call_args).find("'circus.service.tpl'") > 0) self.assertTrue( str(upload_template.call_args).find("'/etc/systemd/system/circus.service'") > 0) self.assertTrue(str(upload_template.call_args) .find("template_dir='lib_path/templates'") > 0) self.assertTrue(str(upload_template.call_args).find("user='******'") > 0) self.assertTrue(mock_reload_daemon.called)
def test_upstart_systemd(self, upload_template, is_systemd, mock_reload_daemon): upstart() self.assertTrue(upload_template.called) self.assertTrue( str(upload_template.call_args).find("'circus.service.tpl'") > 0) self.assertTrue( str(upload_template.call_args).find( "'/etc/systemd/system/circus.service'") > 0) self.assertTrue( str(upload_template.call_args).find( "template_dir='lib_path/templates'") > 0) self.assertTrue(str(upload_template.call_args).find("user='******'") > 0) self.assertTrue(mock_reload_daemon.called)