File: test_exceptions.py

package info (click to toggle)
librouteros 3.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 376 kB
  • sloc: python: 1,579; makefile: 141; sh: 4
file content (9 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
# -*- coding: UTF-8 -*-

from librouteros.exceptions import TrapError


def test_TrapError_newlines():
    r"""Assert that string representation replaces \r\n with comma."""
    error = TrapError(message="some\r\n string")
    assert str(error) == "some, string"