def METHOD_NAME(self):
    buf = Buffer(self.station_id)
    self.assertEqual(0, len(buf))
    the_dict = dict(station_id='mytest', timestamp=1378459200,
                    temperature=dict(min=0, max=100), wind_speed=2.1,
                    wind_gust=67, humidex=77, weather_other=dict(key='val'))
    json_str = json.dumps(the_dict)
    buf.append_from_json(json_str)
    self.assertEqual(1, len(buf))