def test_instantiate_without_token(self): ap = Applications() with self.assertRaises(ValueError): ap.search('id:xxx')
def setUp(self): self.ap = Applications(usertoken='usertk')