Wrong usage of assertTrue
In rev 2c904ab66eb9, the domain inversion tests have been ported to trytond but it used assertTrue to test the result equals True. This is not a good enough test because it will succeed for any value that bool() returns True (like a non empty list).