def test_trivial(self):
     self.assertEqual(remove_comment('hello world'), 'hello world')
 def test_quoted_comment(self):
     self.assertEqual(
         remove_comment('hello world " # not a comment" # comment'),
         'hello world " # not a comment" ')
 def test_hard_one(self):
     self.assertEqual(remove_comment(HARD_ONE),
                      'hello world "this # is #\' it" \'# not\' ')
 def test_empty_comment(self):
     self.assertEqual(remove_comment('hello world #'), 'hello world ')
 def test_escaped_comment(self):
     self.assertEqual(remove_comment('hello world \\#'), 'hello world \\#')
 def test_trivial(self):
   self.assertEqual(remove_comment('hello world'), 'hello world')
 def test_hard_one(self):
   self.assertEqual(remove_comment(HARD_ONE),
                    'hello world "this # is #\' it" \'# not\' ')
 def test_quoted_comment(self):
   self.assertEqual(remove_comment('hello world " # not a comment" # comment'),
                    'hello world " # not a comment" ')
 def test_escaped_comment(self):
   self.assertEqual(remove_comment('hello world \\#'), 'hello world \\#')
 def test_empty_comment(self):
   self.assertEqual(remove_comment('hello world #'), 'hello world ')