Fix TestDetermineKeyBits
Fix TestDetermineKeyBits

The test never ran, because it did not inherit from a
test case class. This patch fixes that and all nits that
made the tests fail.

Signed-off-by: Helga Velroyen <2d0126b1ec6f9ec5cbec4a7012aa14faeaef10f5@google.com>
Reviewed-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>

onponomarev/ganeti,onponomarev/ganeti,mbakke/ganeti,ganeti/ganeti,mbakke/ganeti,andir/ganeti,ganeti/ganeti,leshchevds/ganeti,mbakke/ganeti,andir/ganeti,ganeti/ganeti,andir/ganeti,leshchevds/ganeti,leshchevds/ganeti