def test_get_or_create_sg_nonexisting_sg(self):
    with mock.patch.object(ovsfw, 'SecurityGroup') as sg_mock:
        sg = self.map.get_or_create_sg('id')
    self.assertEqual(sg_mock.return_value, sg)
def test_get_or_create_sg_nonexisting_sg(self):
    with mock.patch.object(ovsfw, 'SecurityGroup') as sg_mock:
        sg = self.map.get_or_create_sg('id')
    self.assertEqual(sg_mock.return_value, sg)