def test_recreation_of_tag_list_string_representations(self):
    plain = Tag.objects.create(name='plain')
    spaces = Tag.objects.create(name='spa ces')
    comma = Tag.objects.create(name='com,ma')
    self.assertEqual(edit_string_for_tags([plain]), 'plain')
    self.assertEqual(edit_string_for_tags([plain, spaces]), '"spa ces", plain')
    self.assertEqual(edit_string_for_tags([plain, spaces, comma]), '"com,ma", "spa ces", plain')
    self.assertEqual(edit_string_for_tags([plain, comma]), '"com,ma", plain')
    self.assertEqual(edit_string_for_tags([comma, spaces]), '"com,ma", "spa ces"')
def test_recreation_of_tag_list_string_representations(self):
    plain = Tag.objects.create(name='plain')
    spaces = Tag.objects.create(name='spa ces')
    comma = Tag.objects.create(name='com,ma')
    self.assertEqual(edit_string_for_tags([plain]), 'plain')
    self.assertEqual(edit_string_for_tags([plain, spaces]), '"spa ces", plain')
    self.assertEqual(edit_string_for_tags([plain, spaces, comma]), '"com,ma", "spa ces", plain')
    self.assertEqual(edit_string_for_tags([plain, comma]), '"com,ma", plain')
    self.assertEqual(edit_string_for_tags([comma, spaces]), '"com,ma", "spa ces"')