def METHOD_NAME(self):
    err = assert_raises(DataError, XmlWriter, os.path.dirname(__file__),
                        usage='testing')
    assert_true(err.message.startswith('Opening testing file'))