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

def test_group_create_server(self):

    self._setup_test_stack()
    self.assertEqual(1, len(self.fake_auto_scale.groups))
    self.assertEqual({'cooldown': 60, 'config_drive': False, 'user_data': None, 'disk_config': None, 'flavor': 'flavor-ref', 'image': 'image-ref', 'load_balancers': [{'loadBalancerId': 234, 'port': 80}], 'key_name': 'my-key', 'launch_config_type': u'launch_server', 'max_entities': 25, 'group_metadata': {'group': 'metadata'}, 'metadata': {'server': 'metadata'}, 'min_entities': 1, 'name': 'My    Group', 'networks': [{'uuid': '00000000-0000-0000-0000-000000000000'}, {'uuid': '11111111-1111-1111-1111-111111111111'}], 'personality': [{'path': u'/tmp/testfile', 'contents': u'dGVzdCBjb250ZW50'}], 'server_name': u'autoscaled-server'}, self.fake_auto_scale.groups['0'].kwargs)
    resource = self.stack['my_group']
    self.assertEqual('0', resource.FnGetRefId())
