本文整理匯總了Python中stoqlib.domain.test.domaintest.DomainTest.setUp方法的典型用法代碼示例。如果您正苦於以下問題:Python DomainTest.setUp方法的具體用法?Python DomainTest.setUp怎麽用?Python DomainTest.setUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類stoqlib.domain.test.domaintest.DomainTest
的用法示例。
在下文中一共展示了DomainTest.setUp方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: setUp
# 需要導入模塊: from stoqlib.domain.test.domaintest import DomainTest [as 別名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 別名]
def setUp(self):
DomainTest.setUp(self)
self._base_category = SellableCategory(description=u"Cigarro",
store=self.store)
self._category = SellableCategory(description=u"Hollywood",
category=self._base_category,
suggested_markup=10,
store=self.store)
示例2: setUp
# 需要導入模塊: from stoqlib.domain.test.domaintest import DomainTest [as 別名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 別名]
def setUp(self):
DomainTest.setUp(self)
sellable = self.create_sellable()
self.product = Product(sellable=sellable,
store=self.store)
示例3: setUp
# 需要導入模塊: from stoqlib.domain.test.domaintest import DomainTest [as 別名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 別名]
def setUp(self):
DomainTest.setUp(self)
self.sparam = sysparam
示例4: setUp
# 需要導入模塊: from stoqlib.domain.test.domaintest import DomainTest [as 別名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 別名]
def setUp(self):
DomainTest.setUp(self)
self.qe = QueryExecuter(self.store)
self.qe.set_search_spec(ClientCategory)
self.sfilter = mock.Mock()
self.qe.set_filter_columns(self.sfilter, ['name'])
示例5: setUp
# 需要導入模塊: from stoqlib.domain.test.domaintest import DomainTest [as 別名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 別名]
def setUp(self):
self._unhandled_exceptions = []
self._old_hook = sys.excepthook
sys.excepthook = self._except_hook
test_system_notifier.reset()
DomainTest.setUp(self)
示例6: setUp
# 需要導入模塊: from stoqlib.domain.test.domaintest import DomainTest [as 別名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 別名]
def setUp(self):
DomainTest.setUp(self)
self._filename = tempfile.mktemp(prefix="stoqlib-test-boleto-",
suffix=".pdf")
self._pdf_html = None
示例7: setUp
# 需要導入模塊: from stoqlib.domain.test.domaintest import DomainTest [as 別名]
# 或者: from stoqlib.domain.test.domaintest.DomainTest import setUp [as 別名]
def setUp(self):
DomainTest.setUp(self)
self.branch = self.create_branch()