def setUp(self):
        super(MemberAPITests, self).setUp()

        d = datetime.date.today()
        self.knesset = Knesset.objects.create(
            number=1,
            start_date=d-datetime.timedelta(10))
        self.party_1 = Party.objects.create(name='party 1',
                                            knesset=self.knesset)
        self.mk_1 = Member.objects.create(name='mk_1',
                                          start_date=datetime.date(2010,1,1),
                                          current_party=self.party_1,
                                          backlinks_enabled=True)
        PersonAlias.objects.create(name="mk_1_alias",
                                   person=Person.objects.get(mk=self.mk_1))
dataset/ETHPy150Open ofri/Open-Knesset/mks/tests.py/MemberAPITests.setUp/original