Use 2.6 compatible assertions

Signed-off-by: Wieland Hoffmann <themineo@gmail.com>