~duplicity-team/duplicity/0.7-series

« back to all changes in this revision

Viewing changes to testing/unit/test_path.py

  • Committer: kenneth at loafman
  • Date: 2019-06-11 15:52:04 UTC
  • mfrom: (1372.2.8 0-7-snap-duplicity)
  • Revision ID: kenneth@loafman.com-20190611155204-ck3otzhy9d3x8kxv
* Merged in lp:~aaron-whitehouse/duplicity/07-snap
  - Add snapcraft packaging instructions for 0.7 series

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# along with duplicity; if not, write to the Free Software Foundation,
20
20
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
21
 
22
 
import sys, unittest
 
22
import sys
 
23
import unittest
23
24
 
24
25
from duplicity import log  # @UnusedImport
25
26
from duplicity.path import *  # @UnusedWildImport
40
41
        p.deltree()
41
42
        assert not p.type, p.type
42
43
 
43
 
    # FIXME: How does this test make any sense?  Two separate Path objects 
 
44
    # FIXME: How does this test make any sense?  Two separate Path objects
44
45
    # will never be equal (they don't implement __cmp__ or __eq__)
45
46
    # def test_compare(self):
46
47
    #    """Test directory comparisons"""
58
59
    def test_unquote(self):
59
60
        """Test path unquoting"""
60
61
        p = Path("foo")  # just to provide unquote function
 
62
 
61
63
        def t(s):
62
64
            """Run test on string s"""
63
65
            quoted_version = p.quote(s)