def test_cmp(self):
path1 = self.root.join('samplefile')
path2 = self.root.join('samplefile2')
-> assert cmp(path1, path2) == cmp('samplefile', 'samplefile2')
assert cmp(path1, path1) == 0