def METHOD_NAME(self):
    r = re.compile(r"Wrote: .*/([^/]*.src.rpm)")
    while True:
        _, line = yield
        m = r.search(line)
        if m:
            self.setProperty("srpm", m.group(1), 'MockBuildSRPM')