michael@0: #/usr/bin/env python michael@0: import mozdevice michael@0: import mozlog michael@0: import unittest michael@0: from sut import MockAgent michael@0: michael@0: michael@0: class TestApp(unittest.TestCase): michael@0: michael@0: def test_getAppRoot(self): michael@0: command = [("getapproot org.mozilla.firefox", michael@0: "/data/data/org.mozilla.firefox")] michael@0: michael@0: m = MockAgent(self, commands=command) michael@0: d = mozdevice.DroidSUT("127.0.0.1", port=m.port, logLevel=mozlog.DEBUG) michael@0: michael@0: self.assertEqual(command[0][1], d.getAppRoot('org.mozilla.firefox')) michael@0: michael@0: if __name__ == '__main__': michael@0: unittest.main()