'Test parsing of an error element with a condition.'

def test_condition(self):

    self.error.addElement(('errorns', 'bad-request'))
    result = error._parseError(self.error, 'errorns')
    self.assertEqual('bad-request', result['condition'])
