Some tests used incorrect order assertEqual(observed, expected).
The correct order expected by testtools is:
def assertEqual(self, expected, observed, message='')
Changed to use the right order. Also if the order is wrong and
expected value is None, change it to assertIsNone instead.
It requires big changes and some tests change frequently.
So I would do it in series of small CR.
This part contains all changes except tests of plugins and service.
Partial-Bug: #1259292
Change-Id: Iefbb5f4b9efca35f7a2298f9f7f5b9de73fc260f