Say I have the class
class myClass(object):
pname = ""
def __getName(self):
return pname
def __setName(self, newname):
if not isalpha(newname):
raise ValueError("Error")
elif
self.pname = newname
name = property(fget=__getName,fset=__setName)
Seeing as these methods are private, and I am accessing pname through name, how do I test with AssertRaises when AssertRaises only accepts a callable for its test?