def testToolSmith(self): toolSmith = ToolSmith() self.assertEqual(1, toolSmith.freeSlots()) toolSmith.addPerson(self.redPlayer) self.assertEqual(0, toolSmith.freeSlots()) with self.assertRaises(PlacementError): toolSmith.addPerson(self.bluePlayer) toolResource = toolSmith.reapResources(self.bluePlayer) self.assertEqual([], toolResource) toolResource = toolSmith.reapResources(self.redPlayer) self.assertEqual([Resource.tool], toolResource)