Switched to py.test over simple asserts