~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

Merge bzr.dev to resolve news conflict

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
from bzrlib.transport import (
32
32
    chroot,
33
33
    fakenfs,
 
34
    http,
34
35
    local,
35
36
    memory,
36
37
    pathfilter,
993
994
        # And the rest are threads
994
995
        for t in started[1:]:
995
996
            t.join()
 
997
 
 
998
 
 
999
class TestUnhtml(tests.TestCase):
 
1000
 
 
1001
    """Tests for unhtml_roughly"""
 
1002
 
 
1003
    def test_truncation(self):
 
1004
        fake_html = "<p>something!\n" * 1000
 
1005
        result = http.unhtml_roughly(fake_html)
 
1006
        self.assertEquals(len(result), 1000)
 
1007
        self.assertStartsWith(result, " something!")