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"