コード例 #1
0
 def test_elided(self, text, length, expected):
     assert utils.elide(text, length) == expected
コード例 #2
0
ファイル: test_utils.py プロジェクト: phansch/qutebrowser
 def test_elided(self, text, length, expected):
     assert utils.elide(text, length) == expected
コード例 #3
0
 def test_too_small(self):
     """Test eliding to 0 chars which should fail."""
     with pytest.raises(ValueError):
         utils.elide('foo', 0)
コード例 #4
0
ファイル: test_utils.py プロジェクト: phansch/qutebrowser
 def test_too_small(self):
     """Test eliding to 0 chars which should fail."""
     with pytest.raises(ValueError):
         utils.elide('foo', 0)