def test_resized_viewbox_no_width_height(self):
    'Truncate decimals'
    svg = ElementTree.fromstring((XML_HEADER + b'<svg viewBox="-10.23 32.18 75.876 75.956"></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="-10 32 75 75"' in result))
Truncate decimals
def test_resized_viewbox_no_width_height(self):
    
    svg = ElementTree.fromstring((XML_HEADER + b'<svg viewBox="-10.23 32.18 75.876 75.956"></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="-10 32 75 75"' in result))