Пример #1
0
 def setUp(self):
     super(ProductWithShippingOptionsTest, self).setUp()
     EntityConnection.open('localhost',
                           27017,
                           db="product_with_shipping",
                           io_loop=self.io_loop)
     self.emanager = EntityManager(ProductWithShippingOptions)
     self.product = BaseTestFactory.create_product_with_3_shipping_options()
Пример #2
0
 def setUp(self):
     super(ConnectionUsingHostPortTest, self).setUp()
     EntityConnection.open('localhost',
                           27017,
                           db="ym_db_test_16",
                           io_loop=self.io_loop)
     self.emanager = EntityManager(SimpleClient)
     self.simple_client = SimpleClient('_name', '__last_name')
Пример #3
0
 def setUp(self):
     super(ProductWithShippingOptionsTest, self).setUp()
     EntityConnection.open('localhost', 27017, db="product_with_shipping", io_loop=self.io_loop)
     self.emanager = EntityManager(ProductWithShippingOptions)
     self.product = BaseTestFactory.create_product_with_3_shipping_options()
Пример #4
0
 def setUp(self):
     super(ConnectionUsingHostPortTest, self).setUp()
     EntityConnection.open('localhost', 27017, db="ym_db_test_16", io_loop=self.io_loop)
     self.emanager = EntityManager(SimpleClient)
     self.simple_client = SimpleClient('_name', '__last_name')
Пример #5
0
 def setUp(self):
     super(BaseTest, self).setUp()
     EntityConnection.open(db="ym_db_test", io_loop=self.io_loop)
Пример #6
0
 def setUp(self):
     super(BaseTest, self).setUp()
     EntityConnection.open(db="ym_db_test", io_loop=self.io_loop)