class AbakusGroupTestCase(BaseTestCase): fixtures = ['test_abakus_groups.yaml'] def setUp(self): self.non_committee = AbakusGroup(name='testgroup') self.non_committee.save() def test_natural_key(self): found_group = AbakusGroup.objects.get_by_natural_key(self.non_committee.name) self.assertEqual(self.non_committee, found_group)
def setUp(self): self.non_committee = AbakusGroup(name='testgroup') self.non_committee.save()