ATLAS Offline Software
Public Member Functions | List of all members
python.TileFolders.TestTileFolders Class Reference
Inheritance diagram for python.TileFolders.TestTileFolders:
Collaboration diagram for python.TileFolders.TestTileFolders:

Public Member Functions

def test_OfflineData (self)
 
def test_OfflineMC (self)
 
def test_OnlineData (self)
 
def test_OnlineMC (self)
 

Detailed Description

Definition at line 36 of file TileFolders.py.

Member Function Documentation

◆ test_OfflineData()

def python.TileFolders.TestTileFolders.test_OfflineData (   self)

Definition at line 37 of file TileFolders.py.

37  def test_OfflineData(self):
38  folders = TileFolders(isMC = False, isOnline = False)
39  self.assertEqual(folders.get(), [], 'Initial folders are not empty')
40 
41  self.assertEqual(folders.add('TEST', 'DB'), 'TEST', 'Wrong folder is added')
42  self.assertTrue(('TEST<key>TEST</key>', 'DB', 'CondAttrListCollection') in folders.get(), 'No correct folder')
43 
44  self.assertEqual(folders.addSplitOnline('ONL', 'OFL'), 'OFL', 'Wrong folder is added')
45  self.assertTrue(('OFL<key>OFL</key>', 'TILE_OFL', 'CondAttrListCollection') in folders.get(), 'No correct folder')
46 
47  self.assertEqual(folders.addSplitMC('DATA', 'MC'), 'DATA', 'Wrong folder is added')
48  self.assertTrue(('DATA<key>DATA</key>', 'TILE', 'CondAttrListCollection') in folders.get(), 'No correct folder')
49 
50  self.assertEqual(len(folders.get()), 3, 'Number of added folders is wrong')
51 
52 

◆ test_OfflineMC()

def python.TileFolders.TestTileFolders.test_OfflineMC (   self)

Definition at line 53 of file TileFolders.py.

53  def test_OfflineMC(self):
54  folders = TileFolders(isMC = True, isOnline = False)
55  self.assertEqual(folders.get(), [], 'Initial folders are not empty')
56 
57  self.assertEqual(folders.add('TEST', 'DB'), 'TEST', 'Wrong folder is added')
58  self.assertTrue(('TEST<key>TEST</key>', 'DB', 'CondAttrListCollection') in folders.get(), 'No correct folder')
59 
60  self.assertEqual(folders.addSplitOnline('ONL', 'OFL'), 'OFL', 'Wrong folder is added')
61  self.assertTrue(('OFL<key>OFL</key>', 'TILE_OFL', 'CondAttrListCollection') in folders.get(), 'No correct folder')
62 
63  self.assertEqual(folders.addSplitMC('DATA', 'MC'), 'MC', 'Wrong folder is added')
64  self.assertTrue(('MC<key>MC</key>', 'TILE_OFL', 'CondAttrListCollection') in folders.get(), 'No correct folder')
65 
66  self.assertEqual(len(folders.get()), 3, 'Number of added folders is wrong')
67 
68 

◆ test_OnlineData()

def python.TileFolders.TestTileFolders.test_OnlineData (   self)

Definition at line 69 of file TileFolders.py.

69  def test_OnlineData(self):
70  folders = TileFolders(isMC = False, isOnline = True)
71  self.assertEqual(folders.get(), [], 'Initial folders are not empty')
72 
73  self.assertEqual(folders.add('TEST', 'DB'), 'TEST', 'Wrong folder is added')
74  self.assertTrue(('TEST<key>TEST</key>', 'DB', 'CondAttrListCollection') in folders.get(), 'No correct folder')
75 
76  self.assertEqual(folders.addSplitOnline('ONL', 'OFL'), 'ONL', 'Wrong folder is added')
77  self.assertTrue(('ONL<key>ONL</key>', 'TILE', 'CondAttrListCollection') in folders.get(), 'No correct folder')
78 
79  self.assertEqual(folders.addSplitMC('DATA', 'MC'), 'DATA', 'Wrong folder is added')
80  self.assertTrue(('DATA<key>DATA</key>', 'TILE', 'CondAttrListCollection') in folders.get(), 'No correct folder')
81 
82  self.assertEqual(len(folders.get()), 3, 'Number of added folders is wrong')
83 
84 

◆ test_OnlineMC()

def python.TileFolders.TestTileFolders.test_OnlineMC (   self)

Definition at line 85 of file TileFolders.py.

85  def test_OnlineMC(self):
86  folders = TileFolders(isMC = True, isOnline = True)
87  self.assertEqual(folders.get(), [], 'Initial folders are not empty')
88 
89  self.assertEqual(folders.add('TEST', 'DB'), 'TEST', 'Wrong folder is added')
90  self.assertTrue(('TEST<key>TEST</key>', 'DB', 'CondAttrListCollection') in folders.get(), 'No correct folder')
91 
92  self.assertEqual(folders.addSplitOnline('ONL', 'OFL'), 'OFL', 'Wrong folder is added')
93  self.assertTrue(('OFL<key>OFL</key>', 'TILE_OFL', 'CondAttrListCollection') in folders.get(), 'No correct folder')
94 
95  self.assertEqual(folders.addSplitMC('DATA', 'MC'), 'MC', 'Wrong folder is added')
96  self.assertTrue(('MC<key>MC</key>', 'TILE_OFL', 'CondAttrListCollection') in folders.get(), 'No correct folder')
97 
98  self.assertEqual(len(folders.get()), 3, 'Number of added folders is wrong')
99 
100 
101 

The documentation for this class was generated from the following file: