Did I find the right examples for you? yes no

All Samples(18888)  |  Call(18562)  |  Derive(326)  |  Import(0)
Assertion failed.

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/interpreter/pyparser/test/unittest_samples.py   plexnet(Download)
            if type(elt1) is tuple and type(elt2) is tuple:
                assert_tuples_equal(elt1, elt2, curpos + (index,))
            raise AssertionError('Found difference at %s : %s != %s' %
                                 (curpos, name(elt1), name(elt2) ), curpos)
 

src/s/y/Sypy-HEAD/interpreter/pyparser/test/unittest_samples.py   Sypy(Download)
            if type(elt1) is tuple and type(elt2) is tuple:
                assert_tuples_equal(elt1, elt2, curpos + (index,))
            raise AssertionError('Found difference at %s : %s != %s' %
                                 (curpos, name(elt1), name(elt2) ), curpos)
 

src/o/t/ottwatch-HEAD/lib/gdata/samples/apps/marketplace_sample/gdata/tlslite/BaseDB.py   ottwatch(Download)
    def __getitem__(self, username):
        if self.db == None:
            raise AssertionError("DB not open")
 
        self.lock.acquire()
    def __setitem__(self, username, value):
        if self.db == None:
            raise AssertionError("DB not open")
 
        valueStr = self._setItem(username, value)
    def __delitem__(self, username):
        if self.db == None:
            raise AssertionError("DB not open")
 
        self.lock.acquire()
        """
        if self.db == None:
            raise AssertionError("DB not open")
 
        self.lock.acquire()
        """
        if self.db == None:
            raise AssertionError("DB not open")
 
        self.lock.acquire()

src/g/d/gdata-2.0.18/samples/apps/marketplace_sample/gdata/tlslite/BaseDB.py   gdata(Download)
    def __getitem__(self, username):
        if self.db == None:
            raise AssertionError("DB not open")
 
        self.lock.acquire()
    def __setitem__(self, username, value):
        if self.db == None:
            raise AssertionError("DB not open")
 
        valueStr = self._setItem(username, value)
    def __delitem__(self, username):
        if self.db == None:
            raise AssertionError("DB not open")
 
        self.lock.acquire()
        """
        if self.db == None:
            raise AssertionError("DB not open")
 
        self.lock.acquire()
        """
        if self.db == None:
            raise AssertionError("DB not open")
 
        self.lock.acquire()

src/o/h/oh-mainline-HEAD/vendor/packages/Pygments/tests/test_examplefiles.py   oh-mainline(Download)
        except ClassNotFound:
            if "_" not in fn:
                raise AssertionError('file %r has no registered extension, '
                                     'nor is of the form <lexer>_filename '
                                     'for overriding, thus no lexer found.'
                lx = get_lexer_by_name(name)
            except ClassNotFound:
                raise AssertionError('no lexer found for file %r' % fn)
        yield check_lexer, lx, absfn, outfn
 
        print '\n'.join(difflib.unified_diff(u''.join(ntext).splitlines(),
                                             text.splitlines()))
        raise AssertionError('round trip failed for ' + absfn)
 
    # check output against previous run if enabled

src/d/j/django-hotsauce-0.5.0/examples/lib/satchmo_store/shop/management/commands/delete_all_dbs.py   Django-hotsauce(Download)
        elif engine in ("postgresql_psycopg2", "postgresql"):
            if db_name == '':
                raise AssertionError("You must specify a value for DATABASE_NAME in local_settings.py.")
            if db_user == '':
                raise AssertionError("You must specify a value for DATABASE_USER in local_settings.py.")
                os.system(cmd % params)
        else:
            raise AssertionError("Unknown database engine %s" % engine)
 

src/n/o/noc-0.7(3)/contrib/src/Pygments/tests/test_examplefiles.py   noc(Download)
        except ClassNotFound:
            if "_" not in fn:
                raise AssertionError('file %r has no registered extension, '
                                     'nor is of the form <lexer>_filename '
                                     'for overriding, thus no lexer found.'
                lx = get_lexer_by_name(name)
            except ClassNotFound:
                raise AssertionError('no lexer found for file %r' % fn)
        yield check_lexer, lx, absfn
 
                (lx, absfn)
    if u''.join(ntext) != text:
        raise AssertionError('round trip failed for ' + absfn)
 

src/o/h/oh-mainline-HEAD/vendor/packages/typecheck/tests/test_examples.py   oh-mainline(Download)
            self.assertEqual(str(e), "Argument tree: for Tree(5, Tree(6), Tree(7.0)), in the right child, expected <type 'int'>, got <type 'float'>")
        else:
            raise AssertionError("Succeeded incorrectly")
 
# An example of Xor being implemented in terms of the included And, Not
                pass
            else:
                raise AssertionError("Failed to raise _TC_TypeError")
 
# An example of IsIterable being implemented in terms of HasAttr() and
            pass
        else:
            raise AssertionError("Failed to raise _TC_MissingAttrError")
 
 

src/o/t/ottwatch-HEAD/lib/gdata/samples/apps/marketplace_sample/gdata/tlslite/utils/compat.py   ottwatch(Download)
 
if sys.version_info < (2,2):
    raise AssertionError("Python 2.2 or later required")
 
if sys.version_info < (2,3):

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/Random/OSRNG/rng_base.py   modern-python-example(Download)
    def _selftest(self):
        # Test that urandom can return data
        data = self.read(16)
        if len(data) != 16:
            raise AssertionError("read truncated")
        data2 = self.read(16)
        if data == data2:
            raise AssertionError("OS RNG returned duplicate data")
 
    # PEP 343: Support for the "with" statement
        data = self._read(N)
        if len(data) != N:
            raise AssertionError("%s produced truncated output (requested %d, got %d)" % (self.name, N, len(data)))
        return data
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next