def test_check_update_category_follow_id_1(self): comesticObj = Comestic() req = { "sdfwewwww": "1121" } self.assertEqual(comesticObj.checkUpdateCategoryFollowId("CSCT",req).status_code, 501, comesticObj.checkUpdateCategoryFollowId("CSCT",req).text)
def test_check_update_brand_follow_id_3(self): comesticObj = Comestic() req = { } self.assertEqual(comesticObj.checkUpdateBrandFollowId("FCWWFWFFFADFW", req).status_code, 200) print(comesticObj.checkUpdateBrandFollowId("FCWWFWFFFADFW", req).text)
def test_check_update_category_follow_id_2(self): comesticObj = Comestic() req = { "categoryId": "CSCT", "name": "Chăm Sóc Cơ Thể", "description": "IIIAII", "createdDate": "2012-02-02T00:00:00", "note": "Danh mục", "product": None } self.assertEqual(comesticObj.checkUpdateCategoryFollowId("CSCT", req).status_code, 200) print(comesticObj.checkUpdateCategoryFollowId("CSCT", req).text)
def test_check_update_brand_follow_id_2(self): comesticObj = Comestic() req = { "brandId": "Acnes", "name": "Acnes", "phoneNumber": "9012301", "email": "ffwwwfwwww", "description": "Sản phẩm trị mụn", "startedDate": "2021-05-05T00:00:00", "note": "", "product": None } self.assertEqual(comesticObj.checkUpdateBrandFollowId("Acnes", req).status_code, 200) print(comesticObj.checkUpdateBrandFollowId("Acnes", req).text)
def test_check_delete_category_follow_id_1(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkDeleteCatgoryFollowId("fasdfwwwwssw"), "not found ID")
def test_check_delete_category_follow_id(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkDeleteCatgoryFollowId(""), "Deleted")
def test_check_create_category_null_data_1(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkCreateCatgoryNullData_1(), True, "is existed data category is null")
def test_check_create_category_null_data(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkingCreateCategoryNullData(), True)
def test_check_update_brand_follow_id_1(self): comesticObj = Comestic() req = { "AASDWCVC": "2021-03-04" } self.assertEqual(comesticObj.checkUpdateBrandFollowId("Acnes", req).status_code, 501,comesticObj.checkUpdateBrandFollowId("Acnes", req).text)
def test_check_update_brand_follow_id(self): comesticObj = Comestic() req = { } self.assertEqual(comesticObj.checkUpdateBrandFollowId("Acnes", req).status_code, 501, comesticObj.checkUpdateBrandFollowId("Acnes", req).text)
def test_check_delete_brand_follow_id_5(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkDeleteBrandFollowId("CETAPHIL"), None)
def test_check_delete_brand_follow_id_2(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkDeleteBrandFollowId("fasdfwwwwssw"), "not found ID")
def test_check_delete_brand_follow_id_1(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkDeleteBrandFollowId(""), "Deleted")
def test_check_delete_category_follow_id_3(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkDeleteCatgoryFollowId("CST"), None)
def test_cheking_create_null_data_1(self): comesticObj = Comestic() self.assertEqual(comesticObj.checkingCreateNullData_1(), True, "is existed data is null")