Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (16 sloc) 0.652 kB
7df171b nojira: built out product contents and skus
Andrew Ellerton authored
1 #!/usr/bin/env python
2 import unittest
3 from gilt.rest.resources import ProductContent
4
5 PRODUCT_CONTENT_1 = """{
6 "description": "Cotton canvas twill blend woven trench coat",
7 "material": "67% cotton and 33% nylon shell. 100% acetate lining",
8 "origin": "China"
9 }"""
10
11 class ProductContentTest(unittest.TestCase):
12
13 def setUp(self):
14 pass
15
16 def test_content_1(self):
17 pc = ProductContent.load_json(PRODUCT_CONTENT_1)
18 self.assertEquals(pc.description, 'Cotton canvas twill blend woven trench coat')
19 self.assertEquals(pc.material, '67% cotton and 33% nylon shell. 100% acetate lining')
20 self.assertEquals(pc.origin, 'China')
21
Something went wrong with that request. Please try again.