'Creating a group passes all the correct arguments to pyrax.
Also saves the group ID as the resource ID.'

def test_group_create_stack(self):

    self._setup_test_stack(self.stack_template)
    self.assertEqual(1, len(self.fake_auto_scale.groups))
    self.assertEqual({'cooldown': 60, 'min_entities': 1, 'max_entities': 25, 'group_metadata': {'group': 'metadata'}, 'name': 'My    Group', 'launch_config_type': u'launch_stack', 'template': 'heat_template_version:    2015-10-15\ndescription:    This    is    a    Heat    template\nparameters:\n        image:\n                default:    cirros-0.3.4-x86_64-uec\n                type:    string\n        flavor:\n                default:    m1.tiny\n                type:    string\nresources:\n        rand:\n                type:    OS::Heat::RandomString\n', 'template_url': None, 'disable_rollback': False, 'environment': {'parameters': {'image': 'Ubuntu    14.04    LTS    (Trusty    Tahr)    (PVHVM)'}, 'resource_registry': {'Heat::InstallConfigAgent': 'https://myhost.com/bootconfig.yaml'}}, 'files': {'fileA.yaml': 'Contents    of    the    file', 'file:///usr/fileB.template': 'Contents    of    the    file'}, 'parameters': {'flavor': '4    GB    Performance'}, 'timeout_mins': 30}, self.fake_auto_scale.groups['0'].kwargs)
    resource = self.stack['my_group']
    self.assertEqual('0', resource.FnGetRefId())
