Esempio n. 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)
Esempio n. 2
0
    def setUp(self):
        self.user = mommy.make('auth.User')

        add_to_registry(TestNotification)
        self.notification = TestNotification()
Esempio n. 3
0
 def setUp(self):
     add_to_registry(TestNotification)
     add_to_registry(OtherNotification)