'ownCloud is redirecting to https and displaying login page'

def test_owncloud_http(self):

    r = requests.get(('http://cloud.' + TEST_SERVER))
    self.assertEquals(r.history[0].status_code, 301)
    self.assertEquals(r.url, (('https://cloud.' + TEST_SERVER) + '/'))
    self.assertEquals(r.status_code, 200)
    self.assertIn('ownCloud', r.content)
