def test_proceeding_line(self):
        """
    Includes a line prior to the 'extra-info' entry.
    """

        expect_invalid_attr_for_text(
            self, b'exit-streams-opened port=80\n' +
            RelayExtraInfoDescriptor.content())
    def test_trailing_line(self):
        """
    Includes a line after the 'router-signature' entry.
    """

        expect_invalid_attr_for_text(
            self,
            RelayExtraInfoDescriptor.content() +
            b'\nexit-streams-opened port=80')
  def test_trailing_line(self):
    """
    Includes a line after the 'router-signature' entry.
    """

    expect_invalid_attr_for_text(self, RelayExtraInfoDescriptor.content() + b'\nexit-streams-opened port=80')
  def test_proceeding_line(self):
    """
    Includes a line prior to the 'extra-info' entry.
    """

    expect_invalid_attr_for_text(self, b'exit-streams-opened port=80\n' + RelayExtraInfoDescriptor.content())