Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_normalizeGlif_transformation_invalid_value(self):
element = ET.fromstring("")
self.assertEqual(_normalizeGlifTransformation(element), {})
def test_normalizeGlif_transformation_default(self):
element = ET.fromstring("")
self.assertEqual(_normalizeGlifTransformation(element), {})
def test_normalizeGlif_transformation_unknown_attribute(self):
element = ET.fromstring("")
self.assertEqual(_normalizeGlifTransformation(element), {})
def test_normalizeGlif_transformation_empty(self):
element = ET.fromstring("")
self.assertEqual(_normalizeGlifTransformation(element), {})
def test_normalizeGlif_transformation_default(self):
element = ET.fromstring("")
self.assertEqual(_normalizeGlifTransformation(element), {})
def test_normalizeGlif_transformation_non_default(self):
element = ET.fromstring("")
self.assertEqual(
sorted(_normalizeGlifTransformation(element).items()),
[('xOffset', 6.0), ('xScale', 2.0), ('xyScale', 3.0),
('yOffset', 7.0), ('yScale', 5.0), ('yxScale', 4.0)])
def test_normalizeGlif_transformation_unknown_attribute(self):
element = ET.fromstring("")
self.assertEqual(_normalizeGlifTransformation(element), {})
def test_normalizeGlif_transformation_non_default(self):
element = ET.fromstring("")
self.assertEqual(
sorted(_normalizeGlifTransformation(element).items()),
[('xOffset', 6.0), ('xScale', 2.0), ('xyScale', 3.0),
('yOffset', 7.0), ('yScale', 5.0), ('yxScale', 4.0)])
def test_normalizeGlif_transformation_empty(self):
element = ET.fromstring("")
self.assertEqual(_normalizeGlifTransformation(element), {})
def test_normalizeGlif_transformation_invalid_value(self):
element = ET.fromstring("")
self.assertEqual(_normalizeGlifTransformation(element), {})