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

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

src/p/y/PySide-1.2.2/sources/shiboken/tests/samplebinding/bytearray_test.py   PySide(Download)
from os.path import isdir
from sample import ByteArray
from py3kcompat import b
 
 
    def testPythonStrAndNull(self):
        s1 = b('123\000321')
        ba = ByteArray(s1)
        s2 = ba.data()
        self.assertEqual(s1, s2)

src/s/h/Shiboken-1.2.2/sources/shiboken/tests/samplebinding/bytearray_test.py   Shiboken(Download)
from os.path import isdir
from sample import ByteArray
from py3kcompat import b
 
 
    def testPythonStrAndNull(self):
        s1 = b('123\000321')
        ba = ByteArray(s1)
        s2 = ba.data()
        self.assertEqual(s1, s2)

src/p/y/PySide-1.2.2/sources/shiboken/tests/samplebinding/enum_test.py   PySide(Download)
import sample
from sample import SampleNamespace, ObjectType, Event
from py3kcompat import IS_PY3K, b
 
def createTempFile():

src/s/h/Shiboken-1.2.2/sources/shiboken/tests/samplebinding/enum_test.py   Shiboken(Download)
import sample
from sample import SampleNamespace, ObjectType, Event
from py3kcompat import IS_PY3K, b
 
def createTempFile():

src/p/y/PySide-1.2.2/sources/shiboken/tests/samplebinding/overloadwithdefault_test.py   PySide(Download)
 
from sample import Overload, Str
from py3kcompat import b
 
class OverloadTest(unittest.TestCase):

src/s/h/Shiboken-1.2.2/sources/shiboken/tests/samplebinding/overloadwithdefault_test.py   Shiboken(Download)
 
from sample import Overload, Str
from py3kcompat import b
 
class OverloadTest(unittest.TestCase):

src/p/y/PySide-1.2.2/sources/pyside/tests/QtGui/qimage_test.py   PySide(Download)
    def testEmptyStringAsBuffer(self):
        img = QImage(py3k.b(''), 100, 100, QImage.Format_ARGB32)
 
    def testXpmConstructor(self):
        label = QLabel()

src/p/y/PySide-1.2.2/sources/pyside/tests/QtCore/qbytearray_test.py   PySide(Download)
    def testIt(self):
        data = py3k.b("foobar")
        a = QByteArray.fromRawData(data)
        self.assertEqual(type(a), QByteArray)
        self.assertEqual(a.data(), data)

src/p/y/PySide-1.2.2/sources/pyside/tests/QtCore/bug_994.py   PySide(Download)
    def readData(self, amount):
        return py3k.b("\0a" * int(amount/2))
 
    def readLineData(self, maxSize):
        return py3k.b("\0b" * 4)

src/p/y/PySide-1.2.2/sources/pyside/tests/util/httpd.py   PySide(Download)
    def do_GET(self):
        self.send_head()
        self.wfile.write(py3k.b(TestHandler.DATA))
 
    def do_HEAD(self):

  1 | 2  Next