Example #1
0
 def test_port_string(self):
     port = OutputPort(port_type='string')
     port.name = 'test_port'
     port.value = 10
     self.assertEquals(port.json['name'], 'test_port')
     self.assertEquals(port.json['type'], 'string')
Example #2
0
 def test_port_write_remote_path(self):
     good_path = os.path.dirname(os.path.realpath(__file__))
     port = OutputPort(value=good_path)
     port.name = 'test_port'
     self.assertEquals(port.path, '/mnt/work/output/test_port')