Replace mox with mock in publisher and pipeline

Replace mox with mock in tests.publisher and tests.test_pipeline

Change-Id: I3ec2d16bb586c4265cb65414a9b5647832d903f2
Merge "Replace mox with mock in publisher and pipeline"