Example #1
0
def create_fake_port(**kw):
    fake_port = Port()
    fake_port.uuid = kw.get('uuid', 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee')
    fake_port.create()
    # TODO add cleanup
    return fake_port
Example #2
0
 def test_create(self):
     port = Port()
     port.create()