Did I find the right examples for you? yes no

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

src/p/e/permm-1.0rc/src/permm/utils.py   permm(Download)
    def testInitFromDict(self):
        bd = self.base_dict
        ad = self.attr_dict
        for k in self.base_dict:
            self._assert(bd[k] == ad[k])

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/test/test_descr_jy.py   openvault-core(Download)
                pass
            else:
                self._assert(False, 'Expected an AttributeError, op: %s' % op)
            try:
                eval('%s(new)' % op)
            except TypeError:
                pass
            else:
                self._assert(False, 'Expected a TypeError, op: %s' % op)

src/f/i/Field-HEAD/Contents/lib/python/test/test_descr_jy.py   Field(Download)
                pass
            else:
                self._assert(False, 'Expected an AttributeError, op: %s' % op)
            try:
                eval('%s(new)' % op)
            except TypeError:
                pass
            else:
                self._assert(False, 'Expected a TypeError, op: %s' % op)

src/b/a/babble-HEAD/include/jython/Lib/test/test_descr_jy.py   babble(Download)
                pass
            else:
                self._assert(False, 'Expected an AttributeError, op: %s' % op)
            try:
                eval('%s(new)' % op)
            except TypeError:
                pass
            else:
                self._assert(False, 'Expected a TypeError, op: %s' % op)

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/test/test_class_jy.py   openvault-core(Download)
        try:
            Bar.bar
            self._assert(False) # The previous line should have raised
                                # AttributeError
        except AttributeError, e:
        try:
            Foo.bar
            self._assert(False) # The previous line should have raised
                                # AttributeError
        except AttributeError, e:

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/zope.interface/src/zope/interface/tests/test_interface.py   hortonworks-sandbox(Download)
                self.assertEquals(error.args[0], e)
            else:
                self._assert(0) # validateInvariants should always raise
                # Invalid
            self.assertEquals(len(e), error_len)

src/f/i/Field-HEAD/Contents/lib/python/test/test_class_jy.py   Field(Download)
        try:
            Bar.bar
            self._assert(False) # The previous line should have raised
                                # AttributeError
        except AttributeError, e:
        try:
            Foo.bar
            self._assert(False) # The previous line should have raised
                                # AttributeError
        except AttributeError, e:

src/b/a/babble-HEAD/include/jython/Lib/test/test_class_jy.py   babble(Download)
        try:
            Bar.bar
            self._assert(False) # The previous line should have raised
                                # AttributeError
        except AttributeError, e:
        try:
            Foo.bar
            self._assert(False) # The previous line should have raised
                                # AttributeError
        except AttributeError, e:

src/o/h/oh-mainline-HEAD/vendor/packages/zope.interface/src/zope/interface/tests/test_interface.py   oh-mainline(Download)
                self.assertEqual(error.args[0], e)
            else:
                self._assert(0) # validateInvariants should always raise
                # Invalid
            self.assertEqual(len(e), error_len)

src/i/n/input-lib-HEAD/packages/zope.interface/src/zope/interface/tests/test_interface.py   input-lib(Download)
                self.assertEquals(error.args[0], e)
            else:
                self._assert(0) # validateInvariants should always raise
                # Invalid
            self.assertEquals(len(e), error_len)

  1 | 2  Next