Oh, wait; not that sort of mocking. Fine. Following the talk on using the fixture package, Jeff Younker spoke on using the PyMock package for unit testing with mock objects. Younker spent the first few minutes of his talk talking about unit testing in general; what I initially thought was simply a [...]
Category Archives: pycon2007
Testing with Fixtures
Following Jim’s talk on zc.ngi, I attended Kumar McMillan talk on using Fixtures to test your programs. According to McMillan, fixtures differ from mock objects in one important way: they use real objects with real data. I haven’t used fixtures or mock objects much, so that was a useful distinction.
McMillan is [...]
Testing Network Applications with NGI
Following the keynote this morning, I attended Jim Fulton’s talk on testing network applications with the Network Gateway Interface. Jim advocates the use of doctests, in particular doctests which allow you to mix the documentation and narrative together (note to self: write a post about why this is compelling). When programming network applications, [...]
Testing Tools Panel @ PyCon
Matt summarizes the PyCon’s Testing Tools Panel far better than I could here. I was also hoping for some more… depth, perhaps? I think that a problem with both the web frameworks and testing tools panels is that they had too many participants for the half-hour-ish time slot. Regardless it served as [...]
Scaling Python on the Web
First session of the day was on Scaling Python on the Web; rough notes which I may clean up later:
How fast is fast enough?
Don’t prematurely optimize
Know where the bottlenecks are, and optimize those specifically?
Orders of magnitude: static (httpd), dynamic (python), db-queried
Even 40 req/s in 3.4m pages/day
Hundreds to low thousands of dynamic page views is usually [...]
