class TestParkingDestinationBuilder(unittest.TestCase): def setUp(self): self.builder = ParkingDestinationBuilder() def test_given_destination_type_parking_then_returns_parking_destination(self): dest = {"type": "parking"} expected = ParkingDestination() result = self.builder.build(dest) assert_that(result, equal_to(expected))
def setUp(self): self.builder = ParkingDestinationBuilder()