by Carlos Ble | Jun 11, 2008 | Software Development, Test Driven Development
A common test to check a function that operates on the filesystem is to create dummy files in the filesystem. However that is dirty because you have to make sure you’ve got the permissions in the filesystem and you delete the dummy files after the tests and so....
by Carlos Ble | Jun 10, 2008 | Software Development, Test Driven Development
Pyunit is a unit tests framework for Python. I believe it is the standard one. It works very well, however to run all the tests within a folder might be not trivial. You can do either hardcode the tests names to build the test suite or use this helper. The helper uses...
by Carlos Ble | Jun 5, 2008 | Software Development, Test Driven Development
Update: We have developed pyDoubles, a test doubles framework for Python which supports mock objects among other test doubles. We no longer use mocker (described in this post). The best article I’ve found on Mock Objects is again written by one of my favorite...
by | May 16, 2008 | Software Development
I got surprised when I found that there was no Web Services implementation in the Python standard lib but fortunately there is a nice project called SoapLib that is open source and implements web services. SoapLib generates the WSDL for your web service and it is...
by | May 2, 2008 | Software Development
I use to think that once you’re use to 2 or 3 programming languages, you can learn another one easily but my thought now is that specialization is important. If you are a Python developer learning C# you not only need to know the syntax but the best practices,...
by | Apr 30, 2008 | Software Development
Nice to see this Microsoft trend. They are pretty much copying the features implemented on great Open Source frameworks like CastleProject or Spring.Net. They published the ASP.Net MVC which is a kind of copy of MonoRail and they are now working on Dependency...