def METHOD_NAME(self):
    self.receive("2016-09-01", metrics={
        "foo": {"value": 1, "unit": "kb"},
        "bar/baz": {"value": 2, "unit": "kb"},
    })
    self.receive("2016-09-02", metrics={
        "foo": {"value": 2, "unit": ""},
        "bar/baz": {"value": 3, "unit": "minutes"}
    })
    resp = self.get_json('/api/data/mygroup/myproject?metric=foo&metric=bar/baz&environment=env1')
    json = resp.data
    self.assertEqual(dict, type(json['foo']))
    first = json['foo']['env1'][0]
    second = json['foo']['env1'][1]
    self.assertEqual([1472688000, 1.0], first[0:2])
    self.assertEqual([1472774400, 2.0], second[0:2])
    first = json['bar/baz']['env1'][0]
    second = json['bar/baz']['env1'][1]
    self.assertEqual([1472688000, 2.0], first[0:2])
    self.assertEqual([1472774400, 3.0], second[0:2])
    self.assertEqual('application/json; charset=utf-8', resp.http['Content-Type'])