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()
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()
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')
def setUp(self): super(StoreWithThreeClientsOnlyTest, self).setUp() self.emanager = EntityManager(StoreWithThreeClientsOnly) self.client = BaseTestFactory.create_store_with_some_clients()
def setUp(self): super(ClientWithManyProductsAndAdressTest, self).setUp() self.emanager = EntityManager(ClientWithManyProductsAndAddress) self.client = BaseTestFactory.create_clients_with_many_products_and_addresses( )
def setUp(self): super(ClientWithFewAddressTest, self).setUp() self.emanager = EntityManager(ClientWithAddress) self.client = BaseTestFactory.create_client_with_3_address()
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)
def setUp(self): super(RemoveAllTest, self).setUp() self.emanager = EntityManager(SimpleClient)