'L{MaildirDirdbmDomain.addUser} accepts a user and password
argument. It stores those in a C{dbm} dictionary
attribute and creates a directory for each user.'

def test_addUser(self):

    toAdd = (('user1', 'pwd1'), ('user2', 'pwd2'), ('user3', 'pwd3'))
    for (u, p) in toAdd:
        self.D.addUser(u, p)
    for (u, p) in toAdd:
        self.assertTrue((u in self.D.dbm))
        self.assertEqual(self.D.dbm[u], p)
        self.assertTrue(os.path.exists(os.path.join(self.P, u)))
