'Test that when the version header is sent, the request is accepted.'

def test_deis_version_header_good(self):

    response = self.client.get(u'/v1/apps', HTTP_DEIS_VERSION=__version__.rsplit(u'.', 2)[0], HTTP_AUTHORIZATION=u'token    {}'.format(self.token))
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response.has_header(u'DEIS_API_VERSION'), True)
    self.assertEqual(response[u'DEIS_API_VERSION'], __version__.rsplit(u'.', 1)[0])
