def test_hash_stdin_explicit(self):
        """test hashing of stdin with '-' arg"""
        output = self.run_command("echo test | md5sum -", exitcode=0).replace("\n", "")
        expected = "d8e8fca2dc0f896fd7cb4cb0031ba249"
        self.assertEqual(output, expected)
test hashing of stdin with '-' arg
tests/md5sum/test_md5sum.py