コード例 #1
0
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)
コード例 #2
0
 def setUp(self):
     self.non_committee = AbakusGroup(name='testgroup')
     self.non_committee.save()