def test_deserialize(self):
        """
        Deserialize a screwdriver.
        """
        state = {"head": "philips", "size": "m3"}
        screwdriver = Screwdriver.fromState(state)

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