Is it possible to write this test with an equality instead of `startswith`/`endswith` hacks ? (is the attribute order fixed ?)