'Test that we notice when our log file has been rotated'

def test_logrotate(self):

    self.cleanup()
    self.start_servers()
    self.assertNotEmptyFile(self.api_server.log_file)
    os.rename(self.api_server.log_file, (self.api_server.log_file + '.1'))
    path = ('http://%s:%d/' % ('127.0.0.1', self.api_port))
    (response, content) = httplib2.Http().request(path, 'GET')
    self.assertEqual(http.MULTIPLE_CHOICES, response.status)
    self.assertNotEmptyFile(self.api_server.log_file)
    self.stop_servers()
