예제 #1
0
 def test_get_full_size_of_non_existing_file(self):
     """Test get_full_size_file with a non-existing file."""
     input_value = 'UnexistingExample.jpg'
     with self.assertRaises(thumbnaildownload.FileDoesNotExistException):
         _ = thumbnaildownload.get_full_size_file(input_value)
 def test_get_full_size_file(self):
     """Test get_full_size_file."""
     input_value = 'Example.jpg'
     expected_value = (open(self.outputfile3).read(), 'Example.jpg')
     output = thumbnaildownload.get_full_size_file(input_value)
     self.assertEqual(output, expected_value)
예제 #3
0
 def test_get_full_size_file(self):
     """Test get_full_size_file."""
     input_value = 'Example.jpg'
     expected_value = (open(self.outputfile3).read(), 'Example.jpg')
     output = thumbnaildownload.get_full_size_file(input_value)
     self.assertEqual(output, expected_value)
 def test_get_full_size_of_non_existing_file(self):
     """Test get_full_size_file with a non-existing file."""
     input_value = 'UnexistingExample.jpg'
     with self.assertRaises(thumbnaildownload.FileDoesNotExistException):
         _ = thumbnaildownload.get_full_size_file(input_value)