Replace mox with mocks in test_inspector

Change-Id: I660bf0708a0bb1de4fb30917a4020a4434b17b91
Replace mox with mock in tests.network

Change-Id: Ic25e4c1e1e17ef5d2a7d256fafb9a5a75396cd87
Use better predicates from testtools instead of plain assert

Change-Id: I8c9b05db59cc08a5668871d4ce305856c659b833
Merge "Replace mox with mock in tests.network"
Merge "Replace mox with mocks in test_inspector"