def test_add_new_context_with_same_source_and_ignore_field(self) -> None:
        """Tests that the context is updated if the difference is not being
        compared."""
        observable_obj = hostname.Hostname(value="tomchop.me").save()
        observable_obj.add_context("test_source", {"abc": 123, "def": 456})
        observable_obj.add_context("test_source", {"abc": 999, "def": 456})
        observable_obj.add_context(
            "test_source", {"abc": 123, "def": 666}, skip_compare={"def"}
        )
        self.assertEqual(len(observable_obj.context), 2)
        self.assertEqual(observable_obj.context[0]["def"], 666)
        self.assertEqual(observable_obj.context[1]["abc"], 999)
Tests that the context is updated if the difference is not being
        compared.
tests/schemas/observable.py