8 import CondCore.Utilities.CondDBFW.querying
as querying
9 import CondCore.Utilities.CondDBFW.data_sources
as data_sources
10 import CondCore.Utilities.CondDBFW.data_formats
as data_formats
11 import CondCore.Utilities.CondDBFW.shell
as shell
12 import CondCore.Utilities.CondDBFW.models
as models
14 prod_connection_string =
"frontier://FrontierProd/CMS_CONDITIONS" 23 test_list = list(
range(0, 10))
25 self.assertTrue(json_list_object !=
None)
26 self.assertEqual(json_list_object.data(), test_list)
27 for n
in range(0, len(test_list)):
28 self.assertEqual(json_list_object.get(n).
data(), test_list[n])
31 test_dict = {
"key1" :
"value1",
"key2" :
"value2",
"key3" :
"value3"}
33 self.assertTrue(json_dict_object !=
None)
34 self.assertEqual(json_dict_object.data(), test_dict)
36 self.assertEqual(json_dict_object.get(key).
data(), test_dict[key])
39 structure = {
"key1" : [{
"a" : 1,
"b" : 3}, {
"a" : 4,
"b" : 8}],
"key2" : [
"header1",
"header2",
"header3"]}
41 self.assertEqual(json_structure_object.get(
"key1").
data(), structure[
"key1"])
42 self.assertEqual(json_structure_object.get(
"key2").
data(), structure[
"key2"])
45 structure = {
"key1" : [{
"a" : 1,
"b" : 3}, {
"a" : 4,
"b" : 8}],
"key2" : [
"header1",
"header2",
"header3"]}
47 new_structure.add_key([],
"key1")
48 new_structure.get(
"key1").add_child({
"a" : 1,
"b" : 3})
49 new_structure.get(
"key1").add_child({
"a" : 4,
"b" : 8})
50 new_structure.add_key([],
"key2")
51 new_structure.get(
"key2").add_child(
"header1")
52 new_structure.get(
"key2").add_child(
"header2")
53 new_structure.get(
"key2").add_child(
"header3")
54 self.assertEqual(new_structure.data(), structure)
57 test_list = list(
range(0, 10))
58 test_dict = {
"key1" :
"value1",
"key2" :
"value2",
"key3" :
"value3"}
73 tag_name =
"EBAlignment_measured_v01_express" 75 self.assertTrue(tag !=
None)
76 parent_gts = tag.parent_global_tags()
def test_type_all_tags(self)
def connect(connection_data, mode="r", map_blobs=False, secrets=None, pooling=True)
def test_type_all_iovs(self)
def test_check_types(self)
def test_type_parent_global_tags(self)
def test_json_navigation(self)
def test_make_json_dict(self)
def test_json_building(self)
def test_make_json_list(self)
char data[epos_bytes_allocation]