Ejemplo n.º 1
0
def canRunTouch():
    tests.out("command|touch bleh.txt")
    result = False
    file = os.path.join(sys.argv[1], "bleh.txt")
    event = "goto '" + file + "|0|0'"
    result = tests.hasEvent(event)
    if result:
        result = os.path.exists(file)
    tests.assertOn(result)
def canRunTouch():
	tests.out("command|touch bleh.txt")
	result = False
	file = os.path.join(sys.argv[1], "bleh.txt")
	event = "goto \"" + file + "|0|0\""
	result = tests.hasEvent(event)
	if result:
		result = os.path.exists(file)
	tests.assertOn(result)
Ejemplo n.º 3
0
def canAssertOnEvents():
    file = os.path.join(sys.argv[1], "bleh.txt")
    tests.out("command|touch bleh.txt")
    tests.out("command|conf read test.setting")
    event = "'codemodel' 'raw-filesystem-change-filecreated' '" + file + "'"
    tests.assertOn(tests.hasEvent(event))