Ejemplo n.º 1
0
 def test_get_hashes_empty(self):
     comparator = config.MD5Comparator([])
     assert comparator.get_hashes() == []
Ejemplo n.º 2
0
 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])