예제 #1
0
 def test_avatar_unicode(self):
     """
     Check that avatar is created with unicode members.
     """
     avatar = mk.makeFilesystemApplicationAvatar()
     self.assertIsInstance(avatar.name, text_type)
     self.assertIsInstance(avatar.home_folder_path, text_type)
예제 #2
0
 def test_avatar_unicode(self):
     """
     Check that avatar is created with unicode members.
     """
     avatar = mk.makeFilesystemApplicationAvatar()
     self.assertTrue(type(avatar.name) is str)
     self.assertTrue(type(avatar.home_folder_path) is str)
예제 #3
0
    def test_init(self):
        """
        ApplicationAvatar can not be impersonated.
        """
        avatar = mk.makeFilesystemApplicationAvatar()

        self.assertFalse(avatar.use_impersonation)
        self.assertProvides(IFileSystemAvatar, avatar)