'L{Node.replaceChild} raises L{ValueError} if the node given to be
replaced is not a child of the node C{replaceChild} is called on.'

def test_replaceNonChild(self):

    parent = microdom.parseString('<foo    />')
    orphan = microdom.parseString('<bar    />')
    replacement = microdom.parseString('<baz    />')
    self.assertRaises(ValueError, parent.replaceChild, replacement, orphan)
