CMS 3D CMS Logo

List of all members | Public Member Functions
service_test.ServiceTestCase Class Reference
Inheritance diagram for service_test.ServiceTestCase:

Public Member Functions

def test_tfile (self)
 

Detailed Description

Definition at line 9 of file service_test.py.

Member Function Documentation

def service_test.ServiceTestCase.test_tfile (   self)

Definition at line 11 of file service_test.py.

11  def test_tfile(self):
12  config = cfg.Service(TFileService,
13  'myhists',
14  fname = 'histos.root',
15  option = 'recreate')
16  dummy = None
17  dirname = 'test_dir'
18  if os.path.exists(dirname):
19  shutil.rmtree(dirname)
20  os.mkdir(dirname)
21  fileservice = TFileService(config, dummy, dirname)
22  fileservice.start()
23  fileservice.stop()
24  shutil.rmtree(dirname)
25