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

All Samples(50)  |  Call(0)  |  Derive(50)  |  Import(0)
A class whose instances are single test cases.

By default, the test code itself should be placed in a method named
'runTest'.

If the fixture may be used for many test cases, create as
many test methods as are needed. When instantiating such a TestCase
subclass, specify in the constructor arguments the name of the test method
that the instance is to execute.
(more...)

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/test_util.py   Nagstamon(Download)
class EscapeTestCase(unittest.TestCase):
 
    def check_escape_unescape(self, initial):
        escaped = escape.escape(initial)
        for c in escaped:

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_Windows.py   Nagstamon(Download)
class Win32CryptoKeyringTestCase(FileKeyringTests, unittest.TestCase):
 
    def init_keyring(self):
        return keyring.backends.Windows.EncryptedKeyring()
 
 
@unittest.skipUnless(is_winvault_supported(),
                     "Need WinVault")
class WinVaultKeyringTestCase(BackendBasicTests, unittest.TestCase):
class RegistryKeyringTestCase(BackendBasicTests, unittest.TestCase):
    def tearDown(self):
        # clean up any credentials created
        for cred in self.credentials_created:
            try:

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_SecretService.py   Nagstamon(Download)
class SecretServiceKeyringTestCase(BackendBasicTests, unittest.TestCase):
    __test__ = True
 
    def init_keyring(self):
        print("Testing SecretServiceKeyring; the following "
            "password prompts are for this keyring")
        return SecretService.Keyring()
 
class SecretServiceKeyringUnitTests(unittest.TestCase):

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_pyfs.py   Nagstamon(Download)
class UnencryptedMemoryPyfilesystemKeyringNoSubDirTestCase(
        PyfilesystemKeyringTests, unittest.TestCase):
    """Test in memory with no encryption"""
 
    keyring_filename = 'mem://unencrypted'
class UnencryptedMemoryPyfilesystemKeyringSubDirTestCase(
        PyfilesystemKeyringTests, unittest.TestCase):
    """Test in memory with no encryption"""
 
    keyring_filename = 'mem://some/sub/dir/unencrypted'
class UnencryptedLocalPyfilesystemKeyringNoSubDirTestCase(
        PyfilesystemKeyringTests, unittest.TestCase):
    """Test using local temp files with no encryption"""
 
    keyring_filename = '%s/keyring.cfg' %tempfile.mkdtemp()
class UnencryptedLocalPyfilesystemKeyringSubDirTestCase(
        PyfilesystemKeyringTests, unittest.TestCase):
    """Test using local temp files with no encryption"""
 
    keyring_dir = os.path.join(tempfile.mkdtemp(), 'more', 'sub', 'dirs')
class EncryptedMemoryPyfilesystemKeyringTestCase(PyfilesystemKeyringTests,
        unittest.TestCase):
    """Test in memory with encryption"""
 
    def init_keyring(self):

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_OS_X.py   Nagstamon(Download)
class OSXKeychainTestCase(BackendBasicTests, unittest.TestCase):
 
    def init_keyring(self):
        return OS_X.Keyring()
 
class SecurityCommandTestCase(unittest.TestCase):
    def test_SecurityCommand(self):
        self.assertEqual(OS_X.SecurityCommand('get'), 'get-generic-password')
        self.assertEqual(OS_X.SecurityCommand('set', 'internet'), 'set-internet-password')
 

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_multi.py   Nagstamon(Download)
class MultipartKeyringWrapperTestCase(unittest.TestCase):
 
    """Test the wrapper that breaks passwords into smaller chunks"""
 
    class MockKeyring(KeyringBackend):

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_kwallet.py   Nagstamon(Download)
class KDEKWalletTestCase(BackendBasicTests, unittest.TestCase):
 
    def init_keyring(self):
        return kwallet.Keyring()
 
class KDEWalletCanceledTestCase(unittest.TestCase):
 
    def test_user_canceled(self):
        # If the user cancels either the "enter your password to unlock the
        # keyring" dialog or clicks "deny" on the "can this application access
class KDEKWalletInQApplication(unittest.TestCase):
    def test_QApplication(self):
        try:
            from PyKDE4.kdeui import KWallet
            from PyQt4.QtGui import QApplication

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_keyczar.py   Nagstamon(Download)
class KeyczarCrypterTestCase(unittest.TestCase):
 
    """Test the keyczar crypter"""
 
    def setUp(self):

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_Google.py   Nagstamon(Download)
class GoogleDocsKeyringTestCase(BackendBasicTests, unittest.TestCase):
    """Run all the standard tests on a new keyring"""
 
    def init_keyring(self):
        client = mocks.MockDocumentService()
class GoogleDocsKeyringInteractionTestCase(unittest.TestCase):
    """Additional tests for Google Doc interactions"""
 
    def _init_client(self, set_token=True):
        client = mocks.MockDocumentService()

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_Gnome.py   Nagstamon(Download)
class GnomeKeyringTestCase(BackendBasicTests, unittest.TestCase):
 
    def environ(self):
        return dict(DISPLAY='1',
                    DBUS_SESSION_BUS_ADDRESS='1')

  1 | 2 | 3  Next