def test_adjacency_matrix(self):
        assert_equal(nx.adj_matrix(self.G),self.A)
        assert_equal(nx.adj_matrix(self.MG),self.A)
        assert_equal(nx.adj_matrix(self.MG2),self.MG2A)
        assert_equal(nx.adj_matrix(self.G,nodelist=[0,1]),self.A[:2,:2])
        assert_equal(nx.adj_matrix(self.WG),self.WA)
        assert_equal(nx.adj_matrix(self.WG,weight=None),self.A)
        assert_equal(nx.adj_matrix(self.MG2,weight=None),self.MG2A)
        assert_equal(nx.adj_matrix(self.WG,weight='other'),0.6*self.WA)
Key to address a mock object in MockableTransport.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/linalg/tests/test_graphmatrix.py/TestGraphMatrix.test_adjacency_matrix--crossover with--dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/testing/__init__.py/_mock_key