'``CreateLinks.run`` generates symlinks in ``destination_path`` for all
the supplied ``links``.'

def test_run(self):

    root = FilePath(self.mktemp())
    bin_dir = root.descendant(['usr', 'bin'])
    bin_dir.makedirs()
    CreateLinks(links=frozenset([(FilePath('/opt/flocker/bin/flocker-foo'), bin_dir), (FilePath('/opt/flocker/bin/flocker-bar'), bin_dir)])).run()
    self.assertEqual(set((FilePath('/opt/flocker/bin').child(script) for script in ('flocker-foo', 'flocker-bar'))), set((child.realpath() for child in bin_dir.children())))
