def METHOD_NAME(self):
    async def test():
        result = await new_my_record("foo", 42)
        self.assertEqual(result.__class__, MyRecord)
        self.assertEqual(result.a, "foo")
        self.assertEqual(result.b, 42)
    asyncio.run(test())