def test_cmd_access(self): cmd1 = "hello world!" cmd2 = "yawn" m = ReactDoMsg(cmd=cmd1) self.assertEquals(cmd1, m.get_cmd()) m.set_cmd(cmd2) self.assertEquals(cmd2, m.get_cmd())