Some updates to DataTable cell key tests

This commit is contained in:
Darren Burns
2023-01-19 15:10:36 +00:00
parent 501952abd5
commit 16c50870a7

View File

@@ -165,10 +165,13 @@ def test_key_doesnt_match_non_equal_string():
def test_key_string_lookup():
# Indirectly covered by other tests, but let's explicitly show how
# we intend for the keys to work for cache lookups.
# Indirectly covered by other tests, but let's explicitly document
# in tests how we intend for the keys to work for cache lookups.
dictionary = {
"hello": "world",
"foo": "bar",
Key("hello"): "world",
}
assert dictionary["foo"] == "bar"
assert dictionary[Key("foo")] == "bar"
assert dictionary["hello"] == "world"
assert dictionary[Key("hello")] == "world"