def test(verbosity=1):
    import tests
    return tests.all(verbosity=verbosity)
示例#2
0
# main

import command

while True:
    query = input(">: ")
    if query == "exit": break
    elif query == 'test':
        import tests
        tests.all()
    else:
        print(command.query(query))
示例#3
0
#!/usr/bin/env python
#
# Copyright (C) 2010-2011  Ralf Nyren <*****@*****.**>
#
# This file is part of the occi-py library.
#
# The occi-py library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# The occi-py library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with the occi-py library.  If not, see <http://www.gnu.org/licenses/>.
#

import unittest
import tests

if __name__ == '__main__':
    suite = tests.all()
    results = unittest.TextTestRunner().run(suite)
示例#4
0
def test(verbosity=1):
    import tests
    return tests.all(verbosity=verbosity)