示例#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)