@patch('corehq.apps.userreports.specs.datetime')
    def test_indicators(self, datetime_mock):
        fake_time_now = datetime.datetime(2015, 4, 24, 12, 30, 8, 24886)
        datetime_mock.utcnow.return_value = fake_time_now
        # indicators
        sample_doc, expected_indicators = get_sample_doc_and_indicators(fake_time_now)
        [results] = self.config.get_all_values(sample_doc)
        for result in results:
            try:
                self.assertEqual(expected_indicators[result.column.id], result.value)
            except __HOLE__:
                # todo: this is a hack due to the fact that type conversion currently happens
                # in the database layer. this should eventually be fixed.
                self.assertEqual(str(expected_indicators[result.column.id]), result.value)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/tests/test_data_source_config.py/DataSourceConfigurationTest.test_indicators