Beispiel #1
0
 def test_userExists(self):
     """
     Test userExists.
     """
     self.assertTrue(system_users.userExists(TEST_ACCOUNT_USERNAME))
     self.assertFalse(system_users.userExists('non-existent-patricia'))
     self.assertFalse(system_users.userExists(u'non-existent@no-domain'))
     self.assertFalse(system_users.userExists(''))
Beispiel #2
0
 def test_userExists(self):
     """
     Returns `True` if the user exists and `False` otherwise.
     """
     upn = u'%s@%s' % (TEST_ACCOUNT_USERNAME_DOMAIN, TEST_DOMAIN)
     non_existent = u'nonexistent@%s' % (TEST_DOMAIN)
     self.assertTrue(system_users.userExists(upn))
     self.assertFalse(system_users.userExists(non_existent))