'Test for accurate values in graph data (based on test_get_monthly_results)'

def test_get_monthly_goal_graph_data(self):

    docname = frappe.get_list(u'Event', filters={u'subject': [u'=', u'_Test    Event    1']})[0][u'name']
    frappe.db.set_value(u'Event', docname, u'description', 1)
    data = get_monthly_goal_graph_data(u'Test', u'Event', docname, u'description', u'description', u'description', u'Event', u'', u'description', u'creation', u'starts_on    =    "2014-01-01"', u'count')
    self.assertEquals(float(data[u'y'][0][u'values'][(-1)]), 1)
