MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_string

Method test_string

Lib/test/test_hmac.py:1440–1451  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1438 self.assert_digest_not_equal(a, b)
1439
1440 def test_string(self):
1441 # Testing str of same lengths
1442 a, b = "foobar", "foobar"
1443 self.assert_digest_equal(a, b)
1444
1445 # Testing str of different lengths
1446 a, b = "foo", "foobar"
1447 self.assert_digest_not_equal(a, b)
1448
1449 # Testing str of same lengths, different values
1450 a, b = "foobar", "foobaz"
1451 self.assert_digest_not_equal(a, b)
1452
1453 def test_string_subclass(self):
1454 class S(str):

Callers

nothing calls this directly

Calls 2

assert_digest_equalMethod · 0.95

Tested by

no test coverage detected