Question #193047 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/193047

    Status: Open => Answered

RaiMan proposed the following answer:
Uuups, sorry for being blind :-(

you have to use

assert not exists()

because assert is a built-in Python feature, that raises an assertion
exception based on the evaluation of the given condition, and has to be
used without self.

self.assert as an attribute of the TestCase object MyTest1 is not defined., 
since you did not define it.
same goes for:
self.assertNotExist()

--- Sikuli test cases
The mentioned test cases that "come" with Sikuli are the tests internally used 
by the developers, to test the features of Sikuli, after having made changes to 
Sikuli.
assertNotExist was available in Sikuli 0.9, but was deprecated in 0.10 and is 
no longer available with Sikuli X.
one has to use "assert not exists()" instead. 

--- assertXXXX in TestCase class
there are some extra assertXXX methods defined 
(http://docs.python.org/library/unittest.html#test-cases)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to