Uses unittest.mock.path to patch out call to matplotlib.pyplot.savefig() TODO: better, more-granular tests of the bits of functionality here