Beispiel #1
0
banner("Cloud Programming")

mesg = "console test"

# test Console
Console.ok(mesg)
Console.msg(mesg)

## Print the Heading, with ###
HEADING("Heading")

##VERBOSE
variables = Variables()

variables['debug'] = True
variables['trace'] = True
variables['verbose'] = 10

m = dict(key1="value1", key2="value2", key3="value3")
VERBOSE(m)

## one more timer sleep
sleep(1)

StopWatch.stop("test")
print(StopWatch.get("test"))

## Clear timer variable
StopWatch.clear()
print(StopWatch.get("test"))
 def test_print_benchmark(self):
     StopWatch.benchmark()
     StopWatch.clear()
     assert 1 == 0