'Test that the promo doesn\'t show when the project has it disabled'

def test_user_disabling(self):

    user = User.objects.get(username='test')
    user.profile.allow_ads = False
    user.profile.save()
    self.login('test', 'test')
    r = self.client.get('/api/v2/footer_html/?project=pip&version=latest&page=index')
    resp = json.loads(r.content)
    self.assertEqual(resp['promo'], False)
    self.logout()
    r = self.client.get('/api/v2/footer_html/?project=pip&version=latest&page=index')
    resp = json.loads(r.content)
    self.assertTrue((resp['promo'] is not False))
