Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(40)  |  Call(40)  |  Derive(0)  |  Import(0)

src/b/i/biopython-1.63/Tests/test_Pathway.py   biopython(Download)
    def testEquals(self):
        a = MultiGraph(['a', 'b', 'c'])
        a.add_edge('a', 'b', 'label1')
        a.add_edge('b', 'c', 'label1')
        a.add_edge('b', 'a', 'label2')
        b = MultiGraph(['a', 'b', 'c'])
        self.assertNotEqual(a, b, "equal to similar nodes, no edges")
        b.add_edge('a', 'b', 'label1')
        self.assertNotEqual(a, b, "equal to similar nodes, edge subset")
        b.add_edge('b', 'c', 'label1')

src/b/i/biopython-HEAD/Tests/test_Pathway.py   biopython(Download)
    def testEquals(self):
        a = MultiGraph(['a', 'b', 'c'])
        a.add_edge('a', 'b', 'label1')
        a.add_edge('b', 'c', 'label1')
        a.add_edge('b', 'a', 'label2')
        b = MultiGraph(['a', 'b', 'c'])
        self.assertNotEqual(a, b, "equal to similar nodes, no edges")
        b.add_edge('a', 'b', 'label1')
        self.assertNotEqual(a, b, "equal to similar nodes, edge subset")
        b.add_edge('b', 'c', 'label1')