

def testNoFinalTerminator(self):
    test_data = 'you forgot a newline'
    expected = [['you', 'forgot', 'a', 'newline']]
    cfg = config_file.FieldParser()
    results = cfg.ParseEntries(test_data)
    for (i, expect) in enumerate(expected):
        self.assertItemsEqual(expect, results[i])

dataset/ETHPy150Open google/grr/grr/parsers/config_file_test.py FieldParserTests.testNoFinalTerminator/original