Fix wikibase 2.6 tests

Use %s and %r to format numbers in a format that corresponds
to the format actually used while formatting (i.e. str() and
repr())

Change-Id: I50d0632606f413c9b5e32341dece2cf9d3eb2a21
Merge "Fix wikibase 2.6 tests"