CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
service_test.ServiceTestCase Class Reference
Inheritance diagram for service_test.ServiceTestCase:

Public Member Functions

def test_tfile
 

Detailed Description

Definition at line 8 of file service_test.py.

Member Function Documentation

def service_test.ServiceTestCase.test_tfile (   self)

Definition at line 10 of file service_test.py.

10 
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)