def test_get_dashboard_returns_data_at_key_source(self, requests_get, json_loads): dashboard = fabfile._get_dashboard(7) self.assertEquals(dashboard,1)
def test_get_dashboard_calls_json_loads(self, requests_get, json_loads): fabfile._get_dashboard(7) self.assertTrue(json_loads.called)