Пример #1
0
    def test_should_return_True_when_try_to_equal_two_the_same_type_objects_with_the_same_values(
            self):
        # GIVEN
        id_sequence = any_id_sequence()
        router_id_mask = any_router_id_mask()

        router_mask = network_layer.RouterMask(id_sequence, router_id_mask)

        # THEN
        self.assertEqual(router_mask,
                         network_layer.RouterMask(id_sequence, router_id_mask))
Пример #2
0
    def test_should_return_router_id_mask_value_when_router_id_mask_property_is_called(
            self):
        # GIVEN
        router_id_mask = any_router_id_mask()

        router_mask = network_layer.RouterMask(any_id_sequence(),
                                               router_id_mask)

        # WHEN
        actual_router_id_mask = router_mask.router_id_mask

        # THEN
        self.assertEqual(router_id_mask, actual_router_id_mask)
Пример #3
0
    def test_should_return_id_sequence_value_when_id_sequence_property_is_called(
            self):
        # GIVEN
        id_sequence = any_id_sequence()

        router_mask = network_layer.RouterMask(id_sequence,
                                               any_router_id_mask())

        # WHEN
        actual_id_sequence = router_mask.id_sequence

        # THEN
        self.assertEqual(id_sequence, actual_id_sequence)