def test_open_image_file_from_url_incorrect_url(self): image = _open_image_file_from_url( \ 'http://www.fullstackpython.com/theme/img/fsp-logo.ng') self.assertFalse(image)
def test_open_image_file_from_url(self): image = _open_image_file_from_url( \ 'http://www.fullstackpython.com/theme/img/fsp-logo.png') self.assertIsNot(image, False)