testfilemanip: use with statement for opening files.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
testdatabase: use with statement to open files.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
testgit: use with statements to open files.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
filemanip: use with statements to open files.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>