예제 #1
0
파일: utils.py 프로젝트: ashleeyoung/gluon
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
예제 #2
0
 def test_create(self):
     port = Port()
     port.create()