from .. import LogFileOutput, mapper


class DmesgLineList(LogFileOutput):
    def has_startswith(self, prefix):
        """
        Returns a boolean array which is `True` where there is one line in
        dmesg starts with `prefix`, otherwise `False`.
        """
        return any(line.startswith(prefix) for line in self.lines)


@mapper('dmesg')
def dmesg(context):
    """
    Returns an object of DmesgLineList
    """
    return DmesgLineList(context)


@mapper('vmcore-dmesg')
def vmcore_dmesg(context):
    """
    Returns an object of DmesgLineList
    """
    return DmesgLineList(context)

@@ -32,16 +32,33 @@
 apper%0A%0A%0A
+@mapper('dmesg')%0A
 class Dm

Add mapper decorator to DmesgLineList mapper