Example #1
0
 def test_identity(self):
     self.assertEqual(serialize_tree(data1_tree[0]), data1.strip())
Example #2
0
 def test_parse_only_id_data1(self):
     ids = [parsed_line["id"] for parsed_line in parse(data1, fields=["id"])[0]]
     num_lines = len(data1.strip().split("\n"))
     self.assertEqual(ids, list(range(1, num_lines + 1)))