def test_create_port(self):
    port = create_ofport({'device': 'a'})
    sec_groups = ['1', '2']
    port_dict = {'security_groups': sec_groups}
    self.map.create_port(port, port_dict)
    self._check_port('a', sec_groups)
    self._check_sg('1', ['a'])
    self._check_sg('2', ['a'])
def test_create_port(self):
    port = create_ofport({'device': 'a'})
    sec_groups = ['1', '2']
    port_dict = {'security_groups': sec_groups}
    self.map.create_port(port, port_dict)
    self._check_port('a', sec_groups)
    self._check_sg('1', ['a'])
    self._check_sg('2', ['a'])