def test_adjoint(self):
        # Adjoint Test
        u = np.random.rand(self.mesh.nC*self.survey.nSrc)
        v = np.random.rand(self.mesh.nC)
        w = np.random.rand(self.survey.dobs.shape[0])
        wtJv = w.dot(self.p.Jvec(self.m0, v))
        vtJtw = v.dot(self.p.Jtvec(self.m0, w))
        passed = 1e-10 < np.abs(wtJv - vtJtw)
        print 'Adjoint Test', np.abs(wtJv - vtJtw), passed
        self.assertTrue(passed)
dataset/ETHPy150Open simpeg/simpeg/tests/dcip/test_forward_DCproblem.py/DCProblemTests.test_adjoint/swapped operands of `<`