def test_delete_context(self) -> None:
        """Tests that a context is deleted if contents fully match."""
        observable_obj = hostname.Hostname(value="tomchop.me").save()
        observable_obj = observable_obj.add_context(
            "test_source", {"abc": 123, "def": 456}
        )
        observable_obj = observable_obj.delete_context(
            "test_source", {"def": 456, "abc": 123}
        )
        assert observable_obj.id is not None
        observable_obj = observable_obj.get(observable_obj.id)  # type: ignore

        self.assertEqual(len(observable_obj.context), 0)
Tests that a context is deleted if contents fully match.
tests/schemas/observable.py