Beispiel #1
0
 def test_main_create_new_merchant_name_format_negative(self):
     input_type = self.class_map["merchant"]
     try:
         create_user_or_merchant("m123", "*****@*****.**", 1000,
                                 input_type["report_object"],
                                 input_type["class_name"])
         assert False
     except Exception as e:
         assert e.message == "Name format invalid"
Beispiel #2
0
 def test_main_create_new_merchant_negative(self):
     input_type = self.class_map["merchant"]
     try:
         create_user_or_merchant("merchant", "*****@*****.**", 10,
                                 input_type["report_object"],
                                 input_type["class_name"])
         assert False
     except Exception as e:
         assert e.message == "Merchant already exists"
Beispiel #3
0
 def test_main_create_new_merchant(self):
     input_type = self.class_map["merchant"]
     assert create_user_or_merchant(
         "merchant", "*****@*****.**", 10, input_type["report_object"],
         input_type["class_name"]) == "merchant(10)"
Beispiel #4
0
 def test_main_create_new_user(self):
     input_type = self.class_map["user"]
     assert create_user_or_merchant(
         "ravinder", "*****@*****.**", 1000, input_type["report_object"],
         input_type["class_name"]) == "ravinder(1000)"