'Verify that symlink creates a valid symlink that is both a link and a
file if its target is a file, or a directory if its target is a
directory.'

def test_linkTo(self):

    targetLinks = [(self.path.child('sub2'), self.path.child('sub2.link')), (self.path.child('sub2').child('file3.ext1'), self.path.child('file3.ext1.link'))]
    for (target, link) in targetLinks:
        target.linkTo(link)
        self.assertTrue(link.islink(), 'This    is    a    link')
        self.assertEqual(target.isdir(), link.isdir())
        self.assertEqual(target.isfile(), link.isfile())
