(self, width, height, expected_width, expected_height)
| 68 | ), |
| 69 | ) |
| 70 | def it_can_scale_its_dimensions(self, width, height, expected_width, expected_height): |
| 71 | with open(test_image_path, "rb") as f: |
| 72 | blob = f.read() |
| 73 | image_part = ImagePart(None, None, None, blob) |
| 74 | |
| 75 | assert image_part.scale(width, height) == (expected_width, expected_height) |
| 76 | |
| 77 | def it_knows_its_pixel_dimensions_to_help(self): |
| 78 | with open(test_image_path, "rb") as f: |