'Test resource id aggregation with index.'

def test_aggregate_refs_with_index(self):

    resg = self._create_dummy_stack()
    expected = ['ID-0', 'ID-1']
    self.assertEqual(expected[0], resg.FnGetAtt('refs', 0))
    self.assertEqual(expected[1], resg.FnGetAtt('refs', 1))
    self.assertIsNone(resg.FnGetAtt('refs', 2))
