'Validates an expected status code.
Matches camel case of other assert functions'

def assertStatusCode(self, response, expected_code):

    if (response.status_code == expected_code):
        return
    self.fail(('status    code    %r    !=    %r:    %s' % (response.status_code, expected_code, response.content)))
