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_parse_float(self):
answer = mintapi.api.parse_float('10%')
self.assertEqual(answer, float(10))
answer = mintapi.api.parse_float('$10')
self.assertEqual(answer, float(10))
answer = mintapi.api.parse_float('0.00%')
self.assertEqual(answer, float(0))
def test_parse_float(self):
answer = mintapi.api.parse_float('10%')
self.assertEqual(answer, float(10))
answer = mintapi.api.parse_float('$10')
self.assertEqual(answer, float(10))
answer = mintapi.api.parse_float('0.00%')
self.assertEqual(answer, float(0))
def test_parse_float(self):
answer = mintapi.api.parse_float('10%')
self.assertEqual(answer, float(10))
answer = mintapi.api.parse_float('$10')
self.assertEqual(answer, float(10))
answer = mintapi.api.parse_float('0.00%')
self.assertEqual(answer, float(0))