django.contrib.auth.models.User.objects.exists - python examples

Here are the examples of the python api django.contrib.auth.models.User.objects.exists taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

0 View Complete Implementation : test_view_signup.py
Copyright MIT License
Author : Hello-Linux
    def test_user_creation(self):
        self.astertTrue(User.objects.exists())

0 View Complete Implementation : test_view_signup.py
Copyright MIT License
Author : Hello-Linux
    def test_dont_create_user(self):
        self.astertFalse(User.objects.exists())