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)
def setUp(self): BaseTestCase.setUp(self) self.dir = tempfile.mkdtemp()
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())
def setUp(self): BaseTestCase.setUp(self, 'https://www.google.com/')
def setUp(self): BaseTestCase.setUp(self) self.mb = MessageBuilder()