@@ -22,31 +22,31 @@ def setUp(self):
2222 self .user = User .objects .get (username = 'autotest' )
2323 self .token = Token .objects .get (user = self .user ).key
2424
25- def test_x_deis_version_header_good (self ):
25+ def test_deis_version_header_good (self ):
2626 """
2727 Test that when the version header is sent, the request is accepted.
2828 """
2929 response = self .client .get (
3030 '/v1/apps' ,
31- HTTP_X_DEIS_VERSION = __version__ .rsplit ('.' , 2 )[0 ],
31+ HTTP_DEIS_VERSION = __version__ .rsplit ('.' , 2 )[0 ],
3232 HTTP_AUTHORIZATION = 'token {}' .format (self .token ),
3333 )
3434 self .assertEqual (response .status_code , 200 )
35- self .assertEqual (response .has_header ('X_DEIS_API_VERSION ' ), True )
36- self .assertEqual (response ['X_DEIS_API_VERSION ' ], __version__ .rsplit ('.' , 1 )[0 ])
35+ self .assertEqual (response .has_header ('DEIS_API_VERSION ' ), True )
36+ self .assertEqual (response ['DEIS_API_VERSION ' ], __version__ .rsplit ('.' , 1 )[0 ])
3737
38- def test_x_deis_version_header_bad (self ):
38+ def test_deis_version_header_bad (self ):
3939 """
4040 Test that when an improper version header is sent, the request is declined.
4141 """
4242 response = self .client .get (
4343 '/v1/apps' ,
44- HTTP_X_DEIS_VERSION = '1234.5678' ,
44+ HTTP_DEIS_VERSION = '1234.5678' ,
4545 HTTP_AUTHORIZATION = 'token {}' .format (self .token ),
4646 )
4747 self .assertEqual (response .status_code , 405 )
4848
49- def test_x_deis_version_header_not_present (self ):
49+ def test_deis_version_header_not_present (self ):
5050 """
5151 Test that when the version header is not present, the request is accepted.
5252 """
0 commit comments