Definition at line 36 of file TileFolders.py.
◆ 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')
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')
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')
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')
50 self.assertEqual(len(folders.get()), 3,
'Number of added folders is wrong')
◆ 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')
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')
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')
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')
66 self.assertEqual(len(folders.get()), 3,
'Number of added folders is wrong')
◆ 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')
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')
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')
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')
82 self.assertEqual(len(folders.get()), 3,
'Number of added folders is wrong')
◆ 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')
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')
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')
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')
98 self.assertEqual(len(folders.get()), 3,
'Number of added folders is wrong')
The documentation for this class was generated from the following file: