'Make sure that getExtensionArgs has the expected result
This method will fill in the mode.'

def failUnlessExtensionArgs(self, expected_args):

    expected_args = dict(expected_args)
    expected_args['mode'] = self.msg.mode
    self.failUnlessEqual(expected_args, self.msg.getExtensionArgs())
