Example #1
0
 def test_link_space_target(self):
     entry = inventory.make_entry('symlink', 'a link', None)
     entry.symlink_target = ' '
     self.assertEqual('link\x00 ',
         inventory_delta._link_content(entry))
 def test_link_space_target(self):
     entry = inventory.make_entry('symlink', 'a link', None)
     entry.symlink_target = ' '
     self.assertEqual('link\x00 ', inventory_delta._link_content(entry))
Example #3
0
 def test_link_unicode_target(self):
     entry = inventory.make_entry('symlink', 'a link', None)
     entry.symlink_target = ' \xc3\xa5'.decode('utf8')
     self.assertEqual('link\x00 \xc3\xa5',
         inventory_delta._link_content(entry))
 def test_link_unicode_target(self):
     entry = inventory.make_entry('symlink', 'a link', None)
     entry.symlink_target = ' \xc3\xa5'.decode('utf8')
     self.assertEqual('link\x00 \xc3\xa5',
                      inventory_delta._link_content(entry))