Skip to content

Commit

Permalink
Merge pull request #1 from hugovk/775_tests
Browse files Browse the repository at this point in the history
Test case for #774
  • Loading branch information
radarhere committed Jul 5, 2014
2 parents 1aee9bf + f6f80e3 commit 516d896
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ def test_internals(self):
file = self.tempfile("temp.ppm")
im._dump(file)

def test_comparison_with_other_type(self):
# Arrange
item = Image.new('RGB', (25, 25), '#000')
num = 12

# Act/Assert
# Shouldn't cause AttributeError (#774)
self.assertFalse(item is None)
self.assertFalse(item == None)
self.assertFalse(item == num)


if __name__ == '__main__':
unittest.main()
Expand Down

0 comments on commit 516d896

Please sign in to comment.