'Test update.'

@requests_mock.Mocker()
def test_update(self, mock_req):

    mock_req.get('http://localhost', text='test    data')
    self.rest.update()
    self.assertEqual('test    data', self.rest.data)
