def setUp(self): self.user = UserFactory() self.this_month = TransactionFactory( title='this_month', created=datetime(2015, 4, 23, tzinfo=pytz.utc), user=self.user, ) self.last_month = TransactionFactory( title='last_month', created=datetime(2015, 3, 23, tzinfo=pytz.utc), user=self.user, ) self.this_year = TransactionFactory( title='this_year', created=datetime(2015, 1, 23, tzinfo=pytz.utc), user=self.user, ) self.last_year = TransactionFactory( title='this_year', created=datetime(2014, 1, 23, tzinfo=pytz.utc), user=self.user, )
def setUp(self): self.user = UserFactory(username='******') self.author = AuthorFactory()
def setUp(self): self.user = UserFactory()