diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2014-12-12 08:51:19 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-12-12 08:51:19 -0500 |
| commit | 59889252937e31ab4c3b734922c63dd529e26e03 (patch) | |
| tree | 94b7823a9ab7f04f52c8e37cdc29453376b3edc4 /tests/test_misc.py | |
| parent | c76154ce75adbebb461d4cb0a524e6c08b4ed5f7 (diff) | |
| download | python-coveragepy-59889252937e31ab4c3b734922c63dd529e26e03.tar.gz | |
Source is always Unicode in HTML code. More refactoring to come.
Diffstat (limited to 'tests/test_misc.py')
| -rw-r--r-- | tests/test_misc.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_misc.py b/tests/test_misc.py index 7b7d51d..d9b0c4e 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -22,6 +22,13 @@ class HasherTest(CoverageTest): self.assertNotEqual(h1.hexdigest(), h2.hexdigest()) self.assertEqual(h1.hexdigest(), h3.hexdigest()) + def test_bytes_hashing(self): + h1 = Hasher() + h1.update(b"Hello, world!") + h2 = Hasher() + h2.update(b"Goodbye!") + self.assertNotEqual(h1.hexdigest(), h2.hexdigest()) + def test_dict_hashing(self): h1 = Hasher() h1.update({'a': 17, 'b': 23}) |
