def test_createElement(self):
        """
        Creates a screwdriver from some state, and verify that it has
        correctly materialized.
        """
        toolbox = Toolbox()
        state = {"head": "philips", "size": "m3"}
        screwdriver = toolbox.createElementFromState(state)

        for attr, value in state.iteritems():
            self.assertEqual(getattr(screwdriver, attr), value)