Пример #1
0
    def test_default_ipv6_process(self):
        """Check the full processing of the default IPv6 prefix."""

        default_route = DefaultRoute()
        assert default_route.process(default_update6) == [expected_message6]
Пример #2
0
    def test_default_ipv6_message(self):
        """Check the format of the output message with the default IPv6 prefix."""

        default_route = DefaultRoute()
        assert default_route.message(default_update6) == expected_message6
Пример #3
0
    def test_non_default_process(self):
        """Check that non default prefixes are not processed."""

        default_route = DefaultRoute()
        assert default_route.process(non_default_update) == []
Пример #4
0
  def test_default_ipv6_process(self):
    """Check the full processing of the default IPv6 prefix."""

    default_route = DefaultRoute()
    assert default_route.process(default_update6) == [ expected_message6 ]
Пример #5
0
  def test_default_ipv6_message(self):
    """Check the format of the output message with the default IPv6 prefix."""

    default_route = DefaultRoute()
    assert default_route.message(default_update6) == expected_message6
Пример #6
0
  def test_non_default_process(self):
    """Check that non default prefixes are not processed."""

    default_route = DefaultRoute()
    assert default_route.process(non_default_update) == []