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)
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)
def test_init(self): """ ApplicationAvatar can not be impersonated. """ avatar = mk.makeFilesystemApplicationAvatar() self.assertFalse(avatar.use_impersonation) self.assertProvides(IFileSystemAvatar, avatar)