Example #1
0
    def test_pool_are_in_pool_to_json(self):
        pool = Pool(self.conn, "pool-name", "profile")
        pool.completion_ttl = "4.11:08:06"
        pool.auto_delete = True
        json_pool = pool._to_json()

        assert json_pool['completionTimeToLive'] == '4.11:08:06'
        assert json_pool['autoDeleteOnCompletion'] == True
Example #2
0
 def test_pool_autodelete_set_get(self):
     pool = Pool(self.conn, "pool-name", "profile")
     pool.auto_delete = False
     assert False == pool.auto_delete
     pool.auto_delete = True
     assert True == pool.auto_delete