Beispiel #1
0
    def setUp(self):
        super(DeletedClientTest, self).setUp()
        self.emanager = EntityManager(SimpleClient)

        self.client1 = BaseTestFactory.create_client_with_3_address()
        self.client2 = BaseTestFactory.create_client_with_3_address()
        self.client3 = BaseTestFactory.create_client_with_3_address()
Beispiel #2
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()
Beispiel #3
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')
Beispiel #4
0
 def setUp(self):
     super(StoreWithThreeClientsOnlyTest, self).setUp()
     self.emanager = EntityManager(StoreWithThreeClientsOnly)
     self.client = BaseTestFactory.create_store_with_some_clients()
Beispiel #5
0
 def setUp(self):
     super(ClientWithManyProductsAndAdressTest, self).setUp()
     self.emanager = EntityManager(ClientWithManyProductsAndAddress)
     self.client = BaseTestFactory.create_clients_with_many_products_and_addresses(
     )
Beispiel #6
0
 def setUp(self):
     super(ClientWithFewAddressTest, self).setUp()
     self.emanager = EntityManager(ClientWithAddress)
     self.client = BaseTestFactory.create_client_with_3_address()
Beispiel #7
0
 def setUp(self):
     super(ClientWithOneAddressTest, self).setUp()
     self.emanager = EntityManager(ClientWithOneAddress)
     self.client_with_address = ClientWithOneAddress('leo', 'sza')
     self.address = Address(city='MANILA', street='test', number=10)
     self.client_with_address.set_address(self.address)
Beispiel #8
0
 def setUp(self):
     super(RemoveAllTest, self).setUp()
     self.emanager = EntityManager(SimpleClient)