def METHOD_NAME(self):
    grp = toga.Group(label="text")
    new_text = "New Text"
    with self.assertWarns(DeprecationWarning):
        grp.label = new_text
    with self.assertWarns(DeprecationWarning):
        self.assertEqual(grp.label, new_text)
    self.assertEqual(grp.text, new_text)