3a1eb421e538d56db4e30b65c38d6221e066aa78,skbio/util/tests/test_misc.py,MiscTests,test_safe_md5,#MiscTests#,43

Before Change


        Make sure we have the expected md5
        exp = "ab07acbb1e496801937adfa772424bf7"

        fd = StringIO("foo bar baz")
        obs = safe_md5(fd)
        self.assertEqual(obs.hexdigest(), exp)

        fd.close()

After Change


        Make sure we have the expected md5
        exp = "ab07acbb1e496801937adfa772424bf7"

        fd = BytesIO(b"foo bar baz")
        obs = safe_md5(fd)
        self.assertEqual(obs.hexdigest(), exp)

        fd.close()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biocore/scikit-bio
Commit Name: 3a1eb421e538d56db4e30b65c38d6221e066aa78
Time: 2014-05-11
Author: mcdonadt@colorado.edu
File Name: skbio/util/tests/test_misc.py
Class Name: MiscTests
Method Name: test_safe_md5


Project Name: sahana/eden
Commit Name: dd783cb878ff51a8c7f38fe4f74ace1953b73a55
Time: 2020-04-13
Author: dominic@nursix.org
File Name: modules/unit_tests/s3/s3rest.py
Class Name: POSTFilterTests
Method Name: testPOSTFilterAjax


Project Name: biocore/scikit-bio
Commit Name: 5f5aa74ddbecc722b85d35b40a6839b5e6bd447b
Time: 2014-04-16
Author: jorgecanardo@gmail.com
File Name: skbio/util/tests/test_misc.py
Class Name: MiscTests
Method Name: test_safe_md5