In my function I was previously using the os.path.getsize function to get the file size. So in my test suit I was using the following to test the resulting value of
os.path.getsize