/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-28 20:59:24 UTC
  • mto: This revision was merged to the branch mainline in revision 3044.
  • Revision ID: bialix@ukr.net-20071128205924-ozm9qxt0texyc4ln
TestCaseInTempDir.build_tree now checks type of shape argument.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2046
2046
 
2047
2047
        This doesn't add anything to a branch.
2048
2048
 
 
2049
        :type shape:    list or tuple.
2049
2050
        :param line_endings: Either 'binary' or 'native'
2050
2051
            in binary mode, exact contents are written in native mode, the
2051
2052
            line endings match the default platform endings.
2053
2054
            If the transport is readonly or None, "." is opened automatically.
2054
2055
        :return: None
2055
2056
        """
 
2057
        assert type(shape) in (list, tuple), ("Parameter 'shape' should be "
 
2058
            "a list or a tuple. Got %s instead" % type(shape))
2056
2059
        # It's OK to just create them using forward slashes on windows.
2057
2060
        if transport is None or transport.is_readonly():
2058
2061
            transport = get_transport(".")