def METHOD_NAME(self):
    self.client.login(username='homer', password='doooh')
    response = self.client.get(reverse('apimobile:sync_mobiles_view'))
    self.assertRedirects(response, '/login/?next=/api/mobile/commands/syncview')