def get_reply(self, message, expected, groups=None):
reply = self.aml.get_reply(self.username, message, groups)<EOL>if isinstance(expected, list):<EOL><INDENT>self.assertIn(reply, expected)<EOL><DEDENT>else:<EOL><INDENT>self.assertEqual(reply, expected)<EOL><DEDENT>
Test that the user's message gets the expected response
:param message: The message to send
:type  message: str

:param expected: The expected response
:type  expected: str, None or List

:param groups: The trigger groups to search, defaults to only matching non-grouped triggers
:type  groups: set or AnyGroup