Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/alias.py   modoboa(Download)
                % dlist.id, {}
        )
        self.assertRaises(Alias.DoesNotExist, Alias.objects.get,
                          address="all", domain__name="test.com")
 
                % fwd.id, {}
        )
        self.assertRaises(Alias.DoesNotExist, Alias.objects.get,
                          address="forward2", domain__name="test.com")
 

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/alias.py   modoboa(Download)
                % dlist.id, {}
        )
        self.assertRaises(Alias.DoesNotExist, Alias.objects.get,
                          address="all", domain__name="test.com")
 
                % fwd.id, {}
        )
        self.assertRaises(Alias.DoesNotExist, Alias.objects.get,
                          address="forward2", domain__name="test.com")
 

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/domain.py   modoboa(Download)
            {}
        )
        with self.assertRaises(Domain.DoesNotExist):
            Domain.objects.get(pk=1)
 

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/domain.py   modoboa(Download)
            {}
        )
        with self.assertRaises(Domain.DoesNotExist):
            Domain.objects.get(pk=1)
 

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/import_.py   modoboa(Download)
             "continue_if_exists": True}
        )
        with self.assertRaises(User.DoesNotExist):
            User.objects.get(username="sa@test.com")
 

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/import_.py   modoboa(Download)
             "continue_if_exists": True}
        )
        with self.assertRaises(User.DoesNotExist):
            User.objects.get(username="sa@test.com")