def test_str(self):
    filename = 'file1'
    data = self.comments_data[filename][0]
    c = comment.Comment(data, filename, self.file_contents)
    actual = str(c)
    expected = ' '.join(['Name1', ansi.format('Can you update this, Name2?', [ansi.GREEN, ansi.ITALIC])])
    self.assertEqual(expected, actual)
def test_str(self):
    filename = 'file1'
    data = self.comments_data[filename][0]
    c = comment.Comment(data, filename, self.file_contents)
    actual = str(c)
    expected = ' '.join(['Name1', ansi.format('Can you update this, Name2?', [ansi.GREEN, ansi.ITALIC])])
    self.assertEqual(expected, actual)