def test_attribute_mixing_dict_directed(self):
     d=mixing.attribute_mixing_dict(self.D,'fish')
     d_result={'one':{'one':1,'red':1},
               'two':{'two':1,'blue':1},
               'red':{},
               'blue':{}
               }
     assert_equal(d,d_result)
 def test_attribute_mixing_dict_multigraph(self):
     d = mixing.attribute_mixing_dict(self.M, 'fish')
     d_result = {
         'one': {
             'one': 4
         },
         'two': {
             'two': 2
         },
     }
     assert_equal(d, d_result)
 def test_attribute_mixing_dict_directed(self):
     d = mixing.attribute_mixing_dict(self.D, 'fish')
     d_result = {
         'one': {
             'one': 1,
             'red': 1
         },
         'two': {
             'two': 1,
             'blue': 1
         },
         'red': {},
         'blue': {}
     }
     assert_equal(d, d_result)
 def test_attribute_mixing_dict_multigraph(self):
     d=mixing.attribute_mixing_dict(self.M,'fish')
     d_result={'one':{'one':4},
               'two':{'two':2},
               }
     assert_equal(d,d_result)