michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: import os michael@0: import posixpath michael@0: michael@0: from dmunit import DeviceManagerTestCase michael@0: michael@0: class PushBinaryTestCase(DeviceManagerTestCase): michael@0: michael@0: def runTest(self): michael@0: """This tests copying a binary file. michael@0: """ michael@0: testroot = self.dm.getDeviceRoot() michael@0: self.dm.removeFile(posixpath.join(testroot, 'mybinary.zip')) michael@0: self.dm.pushFile(os.path.join('test-files', 'mybinary.zip'), michael@0: posixpath.join(testroot, 'mybinary.zip'))