def testStripCommentOnlyComment(self): self.assertEqual(parser._stripcomment("# abcd"), "")
def testStripCommentDoubleComment(self): self.assertEqual(parser._stripcomment("ab # cd # ef"), "ab")
def testStripCommentEmpty(self): self.assertEqual(parser._stripcomment(""), "")
def testStripCommentSmallLine(self): self.assertEqual(parser._stripcomment("ab # cd"), "ab")