def setUp(self):
     self.api = TH.configure_functional_oauth_app(main.main)
     self.user = make_user(
         oauth=[dict(client_id=None, token='token-value')],
         password='******')
     self.api.authorize('token-value')
     content1 = '\n'.join([
         'id,name,email',
         'r1,Example1,[email protected]',
         'r2,Example2,[email protected]',
         'r3,Example3,[email protected]',
         'r4,Example4,[email protected]'])
     content2 = '\n'.join([
         's1,Example1,[email protected]',
         's2,Example2,[email protected]',
         's3,Example3,[email protected]',
         's4,Example4,[email protected]'])
     f1 = make_file(
         self.user, 'test.csv',
         content=content1)
     f2 = make_file(
         self.user, 'test.csv',
         content=content2)
     self.lst1 = TH.make_list(
         self.user, f1,
         mapping=dict(header=True, sheet=0, email=2))
     self.lst2 = TH.make_list(
         self.user, f2,
         mapping=dict(header=False, sheet=0, email=2))
 def setUp(self):
     self.api = TH.configure_functional_oauth_app(main.main)
     self.user = make_user(
         oauth=[dict(client_id=None, token='token-value')],
         password='******')
     self.api.authorize('token-value')