# HG changeset patch # User cmlenz # Date 1129397223 0 # Node ID a5ed3341d9a9fcf77acafb8ebe4ce9fbc953102d # Parent 6abd43d0cd8a48d8773f8ca5328e93d021e23e28 Fix unit tests broken in [299]. diff --git a/bitten/tests/slave.py b/bitten/tests/slave.py --- a/bitten/tests/slave.py +++ b/bitten/tests/slave.py @@ -54,7 +54,8 @@ zip = file(path, 'w') zip.write('INVALID') zip.close() - self.assertRaises(ProtocolError, self.handler.unpack_snapshot, 0, path) + self.assertRaises(ProtocolError, self.handler.unpack_snapshot, 0, + os.path.dirname(path), 'invalid.zip') def test_unpack_invalid_zip_2(self): """ @@ -65,7 +66,8 @@ zip = file(path, 'w') zip.write('INVALIDINVALIDINVALIDINVALIDINVALIDINVALID') zip.close() - self.assertRaises(ProtocolError, self.handler.unpack_snapshot, 0, path) + self.assertRaises(ProtocolError, self.handler.unpack_snapshot, 0, + os.path.dirname(path), 'invalid.zip') def suite(): suite = unittest.TestSuite()