Did I find the right examples for you? yes no

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

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/std/test/test_multimethod.py   plexnet(Download)
    def test_empty(self):
        add3_installer = multimethod.Installer(self.add, '__add3', [{},{}])
        assert add3_installer.is_empty()
        if multimethod.Installer is multimethod.InstallerVersion1:
            assert len(add3_installer.to_install) == 1
    def test_empty_not_baked(self):
        add5_installer = multimethod.Installer(self.add, '__add5', [{},{}],
                                               baked_perform_call=False)
        assert add5_installer.is_empty()
        if multimethod.Installer is multimethod.InstallerVersion1:

src/s/y/Sypy-HEAD/objspace/std/test/test_multimethod.py   Sypy(Download)
    def test_empty(self):
        add3_installer = multimethod.Installer(self.add, '__add3', [{},{}])
        assert add3_installer.is_empty()
        if multimethod.Installer is multimethod.InstallerVersion1:
            assert len(add3_installer.to_install) == 1
    def test_empty_not_baked(self):
        add5_installer = multimethod.Installer(self.add, '__add5', [{},{}],
                                               baked_perform_call=False)
        assert add5_installer.is_empty()
        if multimethod.Installer is multimethod.InstallerVersion1: