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

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

src/p/y/PySide-1.2.2/sources/shiboken/tests/samplebinding/point_test.py   PySide(Download)
 
from sample import Point
from py3kcompat import unicode
 
class PointTest(unittest.TestCase):
    def testAddedOperator(self):
        p = Point(0.0, 0.0)
        r = p - unicode('Hi')
        self.assertEqual(r, unicode('Hi'))
 
        # now the reverse op.
        r = unicode('Hi') - p

src/s/h/Shiboken-1.2.2/sources/shiboken/tests/samplebinding/point_test.py   Shiboken(Download)
 
from sample import Point
from py3kcompat import unicode
 
class PointTest(unittest.TestCase):
    def testAddedOperator(self):
        p = Point(0.0, 0.0)
        r = p - unicode('Hi')
        self.assertEqual(r, unicode('Hi'))
 
        # now the reverse op.
        r = unicode('Hi') - p