Esempio n. 1
0
 def test_json_output(self):
   expected_results = {'container_id': 'test',
     'username': '******', 'hostname': 'test001', 'cpu_shares': 100,
     'ram': 100, 'port_list': [], 'host_server': 'test_server', 
     'volumes': ['/mnt/vol/test_vol'], 'ssh_port': 22}
   a = App('test', 'joe_user', 'test001', 100, 100, 'test_server', 22, 
     ['/mnt/vol/test_vol'])
   self.assertEqual(expected_results, a.get_json())