コード例 #1
0
ファイル: test_text.py プロジェクト: zibuyu1995/mode
def test_shorten_fqdn(s, expected):
    assert text.shorten_fqdn(s) == expected
コード例 #2
0
ファイル: agent.py プロジェクト: bobh66/faust-1
 def _repr_info(self) -> str:
     return shorten_fqdn(self.name)