def test_resized_float_width_height(self):
    svg = ElementTree.fromstring((XML_HEADER + b'<svg width="21.12" height="21.22"></svg>'))
    result = ElementTree.tostring(svg_util.make_square(svg))
    self.assertTrue((b'width="80"' in result))
    self.assertTrue((b'height="80"' in result))
    self.assertTrue((b'viewBox="0 0 21 21"' in result))
def test_resized_float_width_height(self):
    svg = ElementTree.fromstring((XML_HEADER + b'<svg width="21.12" height="21.22"></svg>'))
    result = ElementTree.tostring(svg_util.make_square(svg))
    self.assertTrue((b'width="80"' in result))
    self.assertTrue((b'height="80"' in result))
    self.assertTrue((b'viewBox="0 0 21 21"' in result))