def test_node_attribute_xy_directed(self): attrxy=sorted(mixing.node_attribute_xy(self.D,'fish')) attrxy_result=sorted([('one','one'), ('two','two'), ('one','red'), ('two','blue') ]) assert_equal(attrxy,attrxy_result)
def test_node_attribute_xy_multigraph(self): attrxy=sorted(mixing.node_attribute_xy(self.M,'fish')) attrxy_result=[('one','one'), ('one','one'), ('one','one'), ('one','one'), ('two','two'), ('two','two') ] assert_equal(attrxy,attrxy_result)
def test_node_attribute_xy_selfloop(self): attrxy = sorted(mixing.node_attribute_xy(self.S, 'fish')) attrxy_result = [('one', 'one'), ('two', 'two')] assert_equal(attrxy, attrxy_result)
def test_node_attribute_xy_directed(self): attrxy = sorted(mixing.node_attribute_xy(self.D, 'fish')) attrxy_result = sorted([('one', 'one'), ('two', 'two'), ('one', 'red'), ('two', 'blue')]) assert_equal(attrxy, attrxy_result)