Exemple #1
0
    def setUp(self):
        BaseTestCase.setUp(self)
        self.server = Server(server_token="my-server-token",
                             server_id='my-server-id',
                             server_name='My Server Name')

        self.user = User(user_name='My name',
                         user_id='my-server-id/old-name',
                         user_email='*****@*****.**')

        self.server.users.append(self.user)
        db.session.add(self.server)
        db.session.commit()
 def setUp(self):
     BaseTestCase.setUp(self)
Exemple #3
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.dir = tempfile.mkdtemp()
Exemple #4
0
 def tearDown(self):
     BaseTestCase.tearDown(self)
     shutil.rmtree(self.dir)
 def afterSetUp(self):
     BaseTestCase.afterSetUp(self)
     self.add_samples()
     self.listing = FacetedListing(self.target, ComposedQuery())
Exemple #6
0
 def tearDown(self):
     BaseTestCase.tearDown(self)
     shutil.rmtree(self.dir)
Exemple #7
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.dir = tempfile.mkdtemp()
Exemple #8
0
 def setUp(self):
     BaseTestCase.setUp(self, 'https://www.google.com/')
Exemple #9
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.mb = MessageBuilder()