CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 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 
12  def test_tfile(self):
13  config = cfg.Service(TFileService,
14  'myhists',
15  fname = 'histos.root',
16  option = 'recreate')
17  dummy = None
18  dirname = 'test_dir'
19  if os.path.exists(dirname):
20  shutil.rmtree(dirname)
21  os.mkdir(dirname)
22  fileservice = TFileService(config, dummy, dirname)
23  fileservice.start()
24  fileservice.stop()
25  shutil.rmtree(dirname)