'Test if the correct mugshot is returned for the user when
``USERENA_MUGSHOT_GRAVATAR`` is set to ``False``.'

def test_get_mugshot_url_without_gravatar(self):

    userena_settings.USERENA_MUGSHOT_GRAVATAR = False
    profile = Profile.objects.get(pk=1)
    self.assertEqual(profile.get_mugshot_url(), None)
    userena_settings.USERENA_MUGSHOT_DEFAULT = 'http://example.com'
    profile = Profile.objects.get(pk=1)
    self.assertEqual(profile.get_mugshot_url(), 'http://example.com')
    userena_settings.USERENA_MUGSHOT_GRAVATAR = True
