def METHOD_NAME(self):
    max_level = 3
    result = ebml.parse(self.stream, self.specs, max_level=max_level)
    self.validation = [e for e in self.validation if e[3] <= max_level]
    self.assertTrue(len(result) == len(self.validation))
    for i in range(len(self.validation)):
        self.check_element(self.validation[i][0], self.validation[i][1], self.validation[i][2], self.validation[i][3],
                           self.validation[i][4], self.validation[i][5], self.validation[i][6], result[i], max_level=max_level)