'L{Document.appendChild} raises L{ValueError} if the document already
has a child.'

def test_childRestriction(self):

    document = microdom.Document()
    child = microdom.Node()
    another = microdom.Node()
    document.appendChild(child)
    self.assertRaises(ValueError, document.appendChild, another)
