def test_get_hashes_empty(self): comparator = config.MD5Comparator([]) assert comparator.get_hashes() == []
def comparator(self): self.original_contents = b"abcdefghijkabcd" with tempfile.NamedTemporaryFile() as self.file: self.write_contents(self.original_contents) yield config.MD5Comparator([self.file.name])