def testGetMunkiPath(self):
    base_path = self.mpi.munki_path
    filename = 'bar'
    joined = '/'.join([base_path, filename])
    mock_join = self.mox.CreateMockAnything()
    self.stubs.Set(pkgs.os.path, 'join', mock_join)
    mock_join(base_path, filename).AndReturn(joined)
    self.mox.ReplayAll()
    self.assertEqual(joined, self.mpi._GetMunkiPath(filename))
    self.mox.VerifyAll()
Test _GetMunkiPath().
dataset/ETHPy150Open google/simian/src/tests/simian/mac/munki/pkgs_test.py/MunkiPackageInfoTest.testGetMunkiPath