feat(py-monitor): add PriceTests()
This commit is contained in:
1 parent
57e0afc886
commit
e54308a3ef
1 file changed
+5
@@ -32,6 +32,11 @@ class UrlTests(unittest.TestCase):
|
||||
self.assertEqual("", normalize_product_url(None))
|
||||
|
||||
|
||||
class PriceTests(unittest.TestCase):
|
||||
|
||||
def test_parses_thousands_separator(self):
|
||||
self.assertEqual(1250.5, parse_price("RM 1,250.50"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user