Issue #2225473 by mcjim: Move database fakes out of migrate module so they can be used in non-migrate tests.