def unsaved_files(self) -> Set[str]: """ Fetches the list of unsaved file paths and asserts that the lists match """ primary_files = self.primary.unsaved_files() secondary_files = self.secondary.unsaved_files() assertions.assertEqualSimple(primary_files, secondary_files) return primary_files
def __getattr__(self, aname: str) -> Any: """ Attribute value assertion """ firstval = getattr(self.primary, aname) secondval = getattr(self.secondary, aname) exclusions = [ # Metadata will inherently be different, as ApacheParserNode does # not have Augeas paths and so on. aname == "metadata", callable(firstval) ] if not any(exclusions): assertions.assertEqualSimple(firstval, secondval) return firstval