コード例 #1
0
ファイル: test_brand.py プロジェクト: phuclc/dienthoai
 def test_get_brand_not_found(self):
     b = brand.get("whatever")
     expect(b).to_be_null()
コード例 #2
0
ファイル: test_brand.py プロジェクト: phuclc/dienthoai
 def test_get_data_from_existing_brand(self):
     attr = BrandFactory.attributes()
     data = brand.create(attr)
     b = brand.get(data.uid)
     expect(b.name).to_equal(data.name)