Пример #1
0
    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
    def setUp(self):
        self.user = mommy.make('auth.User')

        add_to_registry(TestNotification)
        self.notification = TestNotification()
Пример #3
0
 def setUp(self):
     add_to_registry(TestNotification)
     add_to_registry(OtherNotification)