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_precision(self):
"""Test return code from utils.precision."""
self.assertEqual(10.0, percent(10, 100))
self.assertRaises(ValueError, percent, 'a', 100)
def test_precision(self):
"""Test return code from utils.precision."""
self.assertEqual(10.0, percent(10, 100))
self.assertRaises(ValueError, percent, 'a', 100)