CS 257: Software Design

Testing your tests

Folder: booksdatasource

As with the books.py revision, you may continue to work with your partner(s) for this exercise, or you may work alone. If you choose to work alone and the code is not in your cs257 GitHub repository, just create your own booksdatasource folder in your own repo and copy the files over there.

If we were seriously developing a books database tool of some kind using TDD, we would now implement our BooksDataSource class using the tests we wrote last week. Since we have other things to do, and I'm guessing you're getting a bit tired of these books and authors, we're going to take a shortcut. I have written a simple implementation of BooksDataSource, and you're now going to hit it with your tests. You will write a brief report, fix your tests if they're buggy, and that will be that.

Your tasks