Пример #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()
Пример #2
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()
Пример #3
0
    def setUp(self):
        super(ClientWithFewAddressTest, self).setUp()
        self.client = BaseTestFactory.create_client_with_3_address()
        self.dict_client = self.client.as_dict()

        self.return_client = ClientWithAddress()
        self.return_client.map_dict(self.dict_client)
Пример #4
0
    def setUp(self):
        super(ClientWithFewAddressTest, self).setUp()
        self.client = BaseTestFactory.create_client_with_3_address()
        self.dict_client = self.client.as_dict()

        self.return_client = ClientWithAddress()
        self.return_client.map_dict(self.dict_client)
Пример #5
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()
Пример #6
0
 def setUp(self):
     super(StoreWithThreeClientsOnlyTest, self).setUp()
     self.emanager = EntityManager(StoreWithThreeClientsOnly)
     self.client = BaseTestFactory.create_store_with_some_clients()
Пример #7
0
 def setUp(self):
     super(ClientWithManyProductsAndAdressTest, self).setUp()
     self.emanager = EntityManager(ClientWithManyProductsAndAddress)
     self.client = BaseTestFactory.create_clients_with_many_products_and_addresses()
Пример #8
0
 def setUp(self):
     super(ClientWithFewAddressTest, self).setUp()
     self.emanager = EntityManager(ClientWithAddress)
     self.client = BaseTestFactory.create_client_with_3_address()
Пример #9
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()
Пример #10
0
 def setUp(self):
     super(ClientWithManyProductsTest, self).setUp()
     self.client = BaseTestFactory.create_clients_with_many_products()
     self.dict_client = self.client.as_dict()
     self.return_client = ClientWithManyProducts()
     self.return_client.map_dict(self.dict_client)
Пример #11
0
 def setUp(self):
     super(ClientWithManyProductsTest, self).setUp()
     self.client = BaseTestFactory.create_clients_with_many_products()
     self.dict_client = self.client.as_dict()
     self.return_client = ClientWithManyProducts()
     self.return_client.map_dict(self.dict_client)
Пример #12
0
 def setUp(self):
     super(StoreWithThreeClientsOnlyTest, self).setUp()
     self.emanager = EntityManager(StoreWithThreeClientsOnly)
     self.client = BaseTestFactory.create_store_with_some_clients()
Пример #13
0
 def setUp(self):
     super(ClientWithManyProductsAndAdressTest, self).setUp()
     self.emanager = EntityManager(ClientWithManyProductsAndAddress)
     self.client = BaseTestFactory.create_clients_with_many_products_and_addresses(
     )
Пример #14
0
 def setUp(self):
     super(ClientWithFewAddressTest, self).setUp()
     self.emanager = EntityManager(ClientWithAddress)
     self.client = BaseTestFactory.create_client_with_3_address()