title: trouble with Boolean testing the name of a class attribute in python
body: <p>I have a class called <code>GamePiece</code>, and it has an attribute <code>image</code> that is either a file names <code>"blue.jpg"</code> or <code>"green.jpg"</code>.  I want my program to do different things depending on which file has been assigned to an instance of this object, <code>myPiece</code>.</p>
  
  <p>E.g., if <code>myPiece.image</code> is <code>"blue.jpg"</code> or <code>myPiece.image</code> is <code>"green.jpg"</code>.  EXACTLY how do I check this?  I'm probably doing something stupid with syntax, but I'm not having any luck doing this.</p>