def test_01_get_random_bytes(self): ph = PasswordHash() rb = ph.get_random_bytes(10) self.assertTrue(len(rb) == 10, len(rb)) rb = ph.get_random_bytes(100) self.assertTrue(len(rb) == 100, len(rb)) _ph = PasswordHash(iteration_count_log2=32)