File: test_util.py

package info (click to toggle)
python-dnaio 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: python: 2,726; ansic: 164; sh: 28; makefile: 15
file content (7 lines) | stat: -rw-r--r-- 203 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
from dnaio._util import shorten


def test_shorten():
    assert shorten(None) is None
    assert shorten("hello too long", 5) == "he..."
    assert shorten("hello not too long") == "hello not too long"