class TestMobileEngine(TestMatchEngine):
    """
    Test MobileEngineRequest class, which are the same tests
    as MatchEngine's for now.
    """

    def setUp(self):
        self.request = MobileEngineRequest(api_url='http://staging02.tc:5001/rest/')
        r = self.request.list(limit=1000)
        if len(r['result']) > 0:
            r = self.request.delete(r['result'])

    def tearDown(self):
        r = self.request.list(limit=1000)
        if len(r['result']) > 0:
            r = self.request.delete(r['result'])
 def setUp(self):
     self.request = MobileEngineRequest(api_url='http://staging02.tc:5001/rest/')
     r = self.request.list(limit=1000)
     if len(r['result']) > 0:
         r = self.request.delete(r['result'])
Exemplo n.º 3
0
 def setUp(self):
     self.request = MobileEngineRequest(api_url='http://localhost:5000/rest/')
     r = self.request.list(limit=1000)
     if len(r['result']) > 0:
         r = self.request.delete(r['result'])