Exemplo n.º 1
0
 def test_getStatus_wrong_id (self):
     processor =  SingularService ()
     retcode = processor.getStatus (WebServiceTests.username, WebServiceTests.password, 'whatever')
     self.assertEqual (retcode[0], (True, 'badid'))
Exemplo n.º 2
0
 def test_getStatus_with_id_not_owner (self):
     processor =  SingularService ()
     retcode = processor.getStatus ('customer1', WebServiceTests.password2, 'testMessage1')
     self.assertEqual (retcode[0], (True, 'badid'))
Exemplo n.º 3
0
 def test_getStatus_wrong_password (self):
     processor =  SingularService ()
     retcode = processor.getStatus (WebServiceTests.wrong_username, WebServiceTests.wrong_password, 'whatever')
     self.assertEqual (retcode, Customer.WRONG_USERNAME_OR_PASSWORD)
Exemplo n.º 4
0
 def test_getStatus_with_id (self):
     processor =  SingularService ()
     retcode = processor.getStatus (WebServiceTests.username, WebServiceTests.password, 'testMessage1')
     self.assertEqual (retcode[0], (False, u''))