Esempio n. 1
0
    def test_station_mapper(self):
        assert_that(self.strike_mapper.create_object(self.result), is_(self.station))

        assert_that(self.station_builder.method_calls, is_([
            call.set_number(31),
            call.set_user('<user>'),
            call.set_name('<name>'),
            call.set_country('<country>'),
            call.set_x(11.0),
            call.set_y(49.0),
            call.set_timestamp(self.timestamp),
            call.build()
        ]))
Esempio n. 2
0
    def test_strike_mapper(self):
        assert_that(self.strike_mapper.create_object(self.result), is_(self.strike))

        assert_that(self.strike_builder.method_calls, is_([
            call.set_id(12),
            call.set_timestamp(self.timestamp, 789),
            call.set_x(11.0),
            call.set_y(51.0),
            call.set_altitude(123),
            call.set_amplitude(21323),
            call.set_station_count(12),
            call.set_lateral_error(5000),
            call.build()
        ]))
Esempio n. 3
0
    def test_station_mapper(self):
        assert_that(self.strike_mapper.create_object(self.result)).is_equal_to(
            self.station)

        assert_that(self.station_builder.method_calls).is_equal_to([
            call.set_number(31),
            call.set_user('<user>'),
            call.set_name('<name>'),
            call.set_country('<country>'),
            call.set_x(11.0),
            call.set_y(49.0),
            call.set_timestamp(self.timestamp),
            call.build()
        ])
Esempio n. 4
0
    def test_strike_mapper(self):
        assert_that(self.strike_mapper.create_object(self.result)).is_equal_to(
            self.strike)

        assert_that(self.strike_builder.method_calls).is_equal_to([
            call.set_id(12),
            call.set_timestamp(self.timestamp, 789),
            call.set_x(11.0),
            call.set_y(51.0),
            call.set_altitude(123),
            call.set_amplitude(21323),
            call.set_station_count(12),
            call.set_lateral_error(5000),
            call.build()
        ])