If it's only a fairly small script, the best way to test on OSX would probably be to run it on your friend's computer - just make it clear that it will be the first test on OSX. Unless you're doing things that are highly platform-dependent, Ubuntu will probably be close enough for testing during development - even Windows might suffice. The only suggestion I would make is to check what version of Python your friend's Mac is running. - OSX ships with a relatively old version, and doesn't update it automatically. Either update it with an installer from the Python website, or develop to the version already installed.
Even if you do get a copy of OSX and run it in a virtual machine (which, depending on where you are, may be a violation of OSX's licence), you'd still need to check things like where your friend has installed any dependancies, so you're not really saving yourself much time.
Could you please give a bit more detail on the procedure involved? – oKtosiTe – 2011-02-24T12:37:08.277
http://m.lifehacker.com/5583650/run-mac-os-x-in-virtualbox-on-windows – AndyM – 2011-03-31T12:38:07.763
sry try [link] http://m.lifehacker.com/5583650/run-mac-os-x-in-virtualbox-on-windows [link]
– AndyM – 2011-03-31T12:39:03.163