Beispiel #1
0
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))
Beispiel #2
0
 def setUp(self):
     self.builder = ParkingDestinationBuilder()