diff --git a/tests/test_resource.py b/tests/test_resource.py index 4cd7fb539..f23d8978b 100644 --- a/tests/test_resource.py +++ b/tests/test_resource.py @@ -8,3 +8,14 @@ def test_create_managed_resource(target): resource_1 = ManagedResource(target) resource_2 = ManagedResource(target) assert resource_1.manager is resource_2.manager + +def test_hash_is(target): + resource1 = Resource(target) + resource2 = Resource(target) + assert resource1 is not resource2 + +def test_hash_set(target): + resource1 = Resource(target) + k = set() + k.add(resource1) + assert resource1 in k