def METHOD_NAME(self):
    self.receive("2018-09-17", metrics={
        "foo": {"value": 1, "unit": ""},
        "bar/baz": {"value": 2, "unit": ""}
    })
    self.receive("2018-09-18", metrics={
        "foo": {"value": 2, "unit": "hours"},
        "bar/baz": {"value": 3, "unit": "minutes"}
    })
    resp = self.client.get('/api/data/mygroup/myproject?metric=foo&environment=env1&format=csv')
    data = resp.content.decode('utf-8').split("\n")
    self.assertIn('"foo","env1","1537142400","1.0","2018-09-17",""', data[0])
    self.assertIn('"foo","env1","1537228800","2.0","2018-09-18",""', data[1])