コード例 #1
0
ファイル: test_notification.py プロジェクト: Axilent/Ahem
    def setUp(self):
        self.user = mommy.make('auth.User')

        add_to_registry(TestNotification)
        self.notification = TestNotification()

        mommy.make('ahem.UserBackendRegistry',
            user=self.user, backend=TestBackend.name)
コード例 #2
0
ファイル: test_notification.py プロジェクト: Axilent/Ahem
    def setUp(self):
        self.user = mommy.make('auth.User')

        add_to_registry(TestNotification)
        self.notification = TestNotification()
コード例 #3
0
ファイル: test_utils.py プロジェクト: Axilent/Ahem
 def setUp(self):
     add_to_registry(TestNotification)
     add_to_registry(OtherNotification)