Pete Zaitcev 0e96911aad Increase test coverage of swift/common/db.py
The most low hanging fruit is _preallocate(). As it turns out,
we never excercise the calculations because we never give it
a file that exists.

This version uses mock.patch everywhere.

Change-Id: I5df03aff295d2a1bca252a02b3985a6bc3eecb26
2013-08-05 20:38:01 -06:00
..
2013-08-03 07:06:00 +08:00