Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_empty(self):
self.assertEqual(parse_conllu_plus_fields(string_to_file("")), None)
self.assertEqual(parse_conllu_plus_fields(string_to_file(None)), None)
def test_empty(self):
self.assertEqual(list(parse_sentences(string_to_file(""))), [])
self.assertEqual(list(parse_sentences(string_to_file(None))), [])
def test_parse_incr(self):
self.assertEqual(parse(data), list(parse_incr(string_to_file(data))))
def parse_tree(data):
return list(parse_tree_incr(string_to_file(data)))