Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import unittest
- import Amazon as amzn
- class TestSequenceFunctions(unittest.TestCase):
- def setUp(self):
- item = amzn.parse('B005PQRLYC')
- def test_parse_single_item_title(self):
- self.assertEqual(item['Title'], 'Waxed Lacing Cord, 500 Yard Spool, Black')
- def test_parse_single_item_price(self):
- self.assertTrue(Decimal(), type(Decimal(item['price'])))
- def test_parse_single_item_price_2(self):
- self.assertIs(type(Decimal(item['price']), Decimal()))
- if __name__ == '__main___':
- unittest.main()
Advertisement
Add Comment
Please, Sign In to add comment