def test_get_node_by_name_with_wrong_attribute(self): node1, node2 = get_node_by_name(self.results, 'b_el', 'wrong') eq_( energysystem.groups['b_el'], node1 ) eq_( None, node2 )
def test_get_multiple_nodes_by_name(self): node1, node2 = get_node_by_name(self.results, 'b_el', 'pp_oil') eq_( energysystem.groups['b_el'], node1 ) eq_( energysystem.groups['pp_oil'], node2 )
def test_get_node_by_name(self): node = views.get_node_by_name(self.results, 'heat_pump') eq_(energysystem.groups['heat_pump'], node)