Did I find the right examples for you? yes no

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

src/p/y/pycogent-HEAD/tests/test_struct/test_rna2d.py   pycogent(Download)
    def test_tuples(self):
        """Pairs tuples() should transform the elements of list to tuples"""
        x = Pairs([])
        x.tuples()
        assert x == []
 
        x = Pairs([[1,2],[3,4]])
        x.tuples()
 
        x = Pairs([(1,2),(3,4)])
        x.tuples()
        assert x == [(1,2),(3,4)]
        assert x != [[1,2],[3,4]]

src/c/o/cogent-1.5.3/tests/test_struct/test_rna2d.py   cogent(Download)
    def test_tuples(self):
        """Pairs tuples() should transform the elements of list to tuples"""
        x = Pairs([])
        x.tuples()
        assert x == []
 
        x = Pairs([[1,2],[3,4]])
        x.tuples()
 
        x = Pairs([(1,2),(3,4)])
        x.tuples()
        assert x == [(1,2),(3,4)]
        assert x != [[1,2],[3,4]]