The tests are somewhat brittle, can we just use
```
image_html = generate_thumbnail_tag(badge)
self.assert_('height="48"' in image_html)
self.assert_('width="48"' in image_html)
```