def test_get_or_create_sg_existing_sg(self):
    self.map.sec_groups['id'] = mock.sentinel
    sg = self.map.get_or_create_sg('id')
    self.assertIs(mock.sentinel, sg)
def test_get_or_create_sg_existing_sg(self):
    self.map.sec_groups['id'] = mock.sentinel
    sg = self.map.get_or_create_sg('id')
    self.assertIs(mock.sentinel, sg)