The TextToENML was failing due to newline issues, which in this case shouldn't matter, so I removed the whitespace before checking for equality.
The tests and the actual out module were very different from each other, so I went with what the tests wanted. However, the test also had the incorrect date for the timestamp it gave, so I fixed that then redid the return_date function.
The prettifying was causing some additional spaces to be added into the ENML, switched to str.