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

All Samples(40)  |  Call(40)  |  Derive(0)  |  Import(0)
Fail if the two objects are unequal as determined by the '=='
operator.

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_Google.py   Nagstamon(Download)
        client._listfeed = self._init_listfeed()
        self._init_keyring(client)
        self.assertEqual(self.keyring.get_password('section1', 'user1'), 'pwd1')
 
        utf8_bom_entries = codecs.BOM_UTF8 + no_utf8_bom_entries
        client._request_response = dict(status=200, data=utf8_bom_entries)
        self._init_keyring(client)
        self.assertEqual(self.keyring.get_password('section1', 'user1'), 'pwd1')
        client._create_folder_err = gdata.service.RequestError
        self._init_keyring(client)
        self.assertEqual(self.keyring.get_password('service-a', 'user-A'), None,
                        'No password should be set in new keyring')
        self.assertRaises(errors.PasswordSetError, self.keyring.set_password,
                          'service-a', 'user-A', 'password-A')
        self.assertEqual(self.keyring.get_password('service-a', 'user-A'), None,
        client._upload_err = gdata.service.RequestError
        self._init_keyring(client)
        self.assertEqual(self.keyring.get_password('service-a', 'user-A'), None,
                        'No password should be set in new keyring')
        self.assertRaises(errors.PasswordSetError, self.keyring.set_password,

src/k/e/keyring-3.7/keyring/tests/backends/test_Google.py   keyring(Download)
        client._listfeed = self._init_listfeed()
        self._init_keyring(client)
        self.assertEqual(self.keyring.get_password('section1', 'user1'), 'pwd1')
 
        utf8_bom_entries = codecs.BOM_UTF8 + no_utf8_bom_entries
        client._request_response = dict(status=200, data=utf8_bom_entries)
        self._init_keyring(client)
        self.assertEqual(self.keyring.get_password('section1', 'user1'), 'pwd1')
        client._create_folder_err = gdata.service.RequestError
        self._init_keyring(client)
        self.assertEqual(self.keyring.get_password('service-a', 'user-A'), None,
                        'No password should be set in new keyring')
        self.assertRaises(errors.PasswordSetError, self.keyring.set_password,
                          'service-a', 'user-A', 'password-A')
        self.assertEqual(self.keyring.get_password('service-a', 'user-A'), None,
        client._upload_err = gdata.service.RequestError
        self._init_keyring(client)
        self.assertEqual(self.keyring.get_password('service-a', 'user-A'), None,
                        'No password should be set in new keyring')
        self.assertRaises(errors.PasswordSetError, self.keyring.set_password,

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_keyczar.py   Nagstamon(Download)
        kz_crypter = keyczar.EnvironCrypter()
        os.environ[kz_crypter.KEYSET_ENV_VAR] = location
        self.assertEqual(location, kz_crypter.keyset_location)
        self.assertIsNone(kz_crypter.encrypting_keyset_location)
        os.environ[kz_crypter.ENC_KEYSET_ENV_VAR] = encrypting_location
        self.assertEqual(encrypting_location, kz_crypter.encrypting_keyset_location)

src/k/e/keyring-3.7/keyring/tests/backends/test_keyczar.py   keyring(Download)
        kz_crypter = keyczar.EnvironCrypter()
        os.environ[kz_crypter.KEYSET_ENV_VAR] = location
        self.assertEqual(location, kz_crypter.keyset_location)
        self.assertIsNone(kz_crypter.encrypting_keyset_location)
        os.environ[kz_crypter.ENC_KEYSET_ENV_VAR] = encrypting_location
        self.assertEqual(encrypting_location, kz_crypter.encrypting_keyset_location)

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_kwallet.py   Nagstamon(Download)
        # None to signify that the KWallet backend is not available.
        self.assertEqual(
            kwallet.open_kwallet(UnOpenableKWallet(), FauxQtGui()),
            None)
 

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/test_util.py   Nagstamon(Download)
            self.assertIn(c, escape.LEGAL_CHARS + '_')
        unescaped = escape.unescape(escaped)
        self.assertEqual(initial, unescaped)
 
    def test_escape_unescape(self):

src/k/e/keyring-3.7/keyring/tests/backends/test_kwallet.py   keyring(Download)
        # None to signify that the KWallet backend is not available.
        self.assertEqual(
            kwallet.open_kwallet(UnOpenableKWallet(), FauxQtGui()),
            None)
 

src/k/e/keyring-3.7/keyring/tests/test_util.py   keyring(Download)
            self.assertIn(c, escape.LEGAL_CHARS + '_')
        unescaped = escape.unescape(escaped)
        self.assertEqual(initial, unescaped)
 
    def test_escape_unescape(self):

src/n/a/Nagstamon-HEAD/Nagstamon/Nagstamon/thirdparty/keyring/tests/backends/test_OS_X.py   Nagstamon(Download)
    def test_SecurityCommand(self):
        self.assertEqual(OS_X.SecurityCommand('get'), 'get-generic-password')
        self.assertEqual(OS_X.SecurityCommand('set', 'internet'), 'set-internet-password')
 

src/k/e/keyring-3.7/keyring/tests/backends/test_OS_X.py   keyring(Download)
    def test_SecurityCommand(self):
        self.assertEqual(OS_X.SecurityCommand('get'), 'get-generic-password')
        self.assertEqual(OS_X.SecurityCommand('set', 'internet'), 'set-internet-password')