def setUp(self):
     TestCase.setUp(self)
     self.brand = Brand(self)
     self.system = System(self)
     BaseTestCase.setUp(self)
     self.create_user(username='******', email='*****@*****.**', password='******')
     self.access_token = self.brand.admin_login()
 def setUp(self):
     TestCase.setUp(self)
     self.brand = Brand(self)
     self.system = System(self)
     BaseTestCase.setUp(self)
     self.create_user(username="******", email="*****@*****.**", password="******", is_superuser=True)
     self.access_token = self.brand.admin_login()
 def setUp(self):
     TestCase.setUp(self)
     self.brand = Brand(self)
     self.system = System(self)
     BaseTestCase.setUp(self)
     self.create_user(username='******', email='*****@*****.**', password='******')
     self.create_user(username='******', email='*****@*****.**', password='******')
 def setUp(self):
     TestCase.setUp(self)
     self.brand = Brand(self)
     self.system = System(self)
     BaseTestCase.setUp(self)
     self.create_user(username='******', email='*****@*****.**', password='******', is_superuser=True)
     self.brand.send_container_tracker_feed()
     self.access_token = self.brand.admin_login()
 def setUp(self):
     TestCase.setUp(self)
     BaseTestCase.setUp(self)
     self.brand = Brand(self)
     self.system = System(self)
     self.PHONE_NUMBER = "+TS0000000000"
     self.VALID_BRAND_ID = {
         'text': "BRAND BRAND001", 'phoneNumber': self.PHONE_NUMBER}
     self.INVALID_BRAND_ID = {
         'text': "BRAND BRAN", 'phoneNumber': self.PHONE_NUMBER}
 def setUp(self):
     TestCase.setUp(self)
     BaseTestCase.setUp(self)
     self.brand = Brand(self)
     brand = self.brand
     self.system = System(self)
     self.client = Client(SERVER_NAME='bajaj')
     self.create_user(username='******', email='*****@*****.**', password='******')
     self.create_user(username='******', email='*****@*****.**', password='******', brand='bajaj')
     brand.send_dispatch_feed()
     '''This both feed will create product data, product type ,brand database'''
 def setUp(self):
     TestCase.setUp(self)
     BaseTestCase.setUp(self)
     self.client = Client()
     self.system = System(self)
     self.brand = Brand(self)
     brand = self.brand
     system = self.system
     self.base_version = 'http://local.daimler.gladminds.co:8000'
     self.create_user(username='******', email='*****@*****.**', password='******')
     self.create_user(username='******', email='*****@*****.**', password='******')
     brand.send_service_advisor_feed()
     system.create_sdo(username='******', email='*****@*****.**', password='******', phone_number="+910000000000")
     system.create_sdm(username='******', email='*****@*****.**', password='******', phone_number="+911234567890")
     system.create_sla(priority="Low")
     system.create_sla(priority="High")
     system.create_dealer(username='******', email='*****@*****.**', password='******', phone_number="+919999999999")
    def setUp(self):
        TestCase.setUp(self)
        BaseTestCase.setUp(self)
        self.brand = Brand(self)
        self.system = System(self)
        VALID_MSG_SERVICE = "SERVICE F0B18AE"
        VALID_PHONE_NUMBER = "+TS9800000011"
        self.vlid_service_message = {
            'text': VALID_MSG_SERVICE, 'phoneNumber': VALID_PHONE_NUMBER}
 
        # Invalid check customer id
        INVALID_MSG_SERVICE = "SERVICE 000000"
        self.inavlid_service_message = {
            'text': INVALID_MSG_SERVICE, 'phoneNumber': VALID_PHONE_NUMBER}
 
        # Invalid Phone Number
        INVALID_PHONE_NUMBER = "+TA0000000011"
        self.service_message_with_invalid_phone_number = {
            'text': VALID_MSG_SERVICE, 'phoneNumber': INVALID_PHONE_NUMBER}
    def setUp(self):
        TestCase.setUp(self)
        BaseTestCase.setUp(self)
        self.brand = Brand(self)
        self.system = System(self)
        MSG_CUST_REG = "GCP_REG [email protected] TestUser"
        PHONE_NUMBER = "+TS{0}".format(int(time.time()))
        self.CUST_REG = {'text': MSG_CUST_REG, 'phoneNumber': PHONE_NUMBER}
 
        # iNVALID MESSAGE
        MSG_INVALID_CUST_REG = "GCP_REG [email protected]"
        self.INVALID_CUST_REG = {
            'text': MSG_INVALID_CUST_REG, 'phoneNumber': PHONE_NUMBER}
 
        # INVALID KEYWORD
        MSG_INVALID_CUST_REG_KEY = "REG [email protected] TestUser"
        self.INVALID_CUST_REG_KEY = {
            'text': MSG_INVALID_CUST_REG_KEY, 'phoneNumber': PHONE_NUMBER}
 
        # Already Register
        MSG_ALREADY_CUST_REG = "GCP_REG [email protected] Test Gldaminds"
        self.ALREADY_CUST_REG = {
            'text': MSG_ALREADY_CUST_REG, 'phoneNumber': '+TS0000000001'}
 def setUp(self):
     self.client = Client(SERVER_NAME='bajaj')
     BaseTestCase.setUp(self)
     self.system = System(self)