def test_property_table_objinit(): d = PropertyData(dummy_data) m = PropertyMetadata({"bar": "y"}) tbl = PropertyTable(data=d, metadata=m) assert tbl.data.as_list()[0]["units"] == "none" assert tbl.metadata[0].as_dict()["bar"] == "y"
def test_property_table_objinit(): d = PropertyData(dummy_data) m = PropertyMetadata({'bar': 'y'}) tbl = PropertyTable(data=d, metadata=m) assert tbl.data.as_list()[0]['units'] == 'none' assert tbl.metadata[0].as_dict()['bar'] == 'y'