

def test_serialize_works_as_expected(self):
    item = Internal()
    item.sdk_version = 'Test string'
    item.agent_version = 'Test string'
    actual = json.dumps(item.write(), separators=(',', ':'), cls=TestJsonEncoder)
    expected = '{"ai.internal.sdkVersion":"Test string","ai.internal.agentVersion":"Test string"}'
    self.assertEqual(self, actual)

dataset/ETHPy150Open Microsoft/ApplicationInsights-Python/tests/applicationinsights_tests/channel_tests/contracts_tests/TestInternal.py TestInternal.test_serialize_works_as_expected/VarMisuse@61/103 `expected`->`self`