Exemple #1
0
    def test_generic_folder(self):
        f = Folder(parent=self.account.inbox, name=get_random_string(16))
        f.save()
        f.name = get_random_string(16)
        f.save()
        f.delete()

        self.assertEqual(Folder().has_distinguished_name, None)
        self.assertEqual(Inbox(name="XXX").has_distinguished_name, False)
        self.assertEqual(Inbox(name="Inbox").has_distinguished_name, True)
        self.assertEqual(Inbox(is_distinguished=False).is_deletable, True)
        self.assertEqual(Inbox(is_distinguished=True).is_deletable, False)
Exemple #2
0
 def test_generic_folder(self):
     f = Folder(parent=self.account.inbox, name=get_random_string(16))
     f.save()
     f.name = get_random_string(16)
     f.save()
     f.delete()