'Test that a range request from byte 0 to last,
outputs partial content status code and valid Content-Range and Content-Length.'

def test_range_request_full_file(self):

    resp = self.client.get(self.url_unlocked, HTTP_RANGE='bytes=0-')
    self.assertEqual(resp.status_code, 206)
    self.assertEqual(resp['Content-Range'], 'bytes    {first}-{last}/{length}'.format(first=0, last=(self.length_unlocked - 1), length=self.length_unlocked))
    self.assertEqual(resp['Content-Length'], str(self.length_unlocked))
