Exemplo n.º 1
0
 def test_elided(self, filename, length, expected):
     assert utils.elide_filename(filename, length) == expected
Exemplo n.º 2
0
 def test_elided(self, filename, length, expected):
     assert utils.elide_filename(filename, length) == expected
Exemplo n.º 3
0
 def test_too_small(self):
     """Test eliding to less than 3 characters which should fail."""
     with pytest.raises(ValueError):
         utils.elide_filename('foo', 1)
Exemplo n.º 4
0
 def test_too_small(self):
     """Test eliding to less than 3 characters which should fail."""
     with pytest.raises(ValueError):
         utils.elide_filename('foo', 1)