def test_all_properties_no_properties(self):
        """Test whether no properties are returned if they don't exist in the mapping"""

        elastic = ElasticSearch(self.es_con, self.target_index, Mapping)
        properties = elastic.all_properties()

        self.assertDictEqual(properties, {})
    def test_all_properties(self):
        """Test whether all index properties are correctly returned"""

        expected_properties = {
            'data': {
                'properties': {
                    'message': {
                        'type': 'text'
                    }
                }
            }
        }
        elastic = ElasticSearch(self.es_con, self.target_index, GitOcean.mapping)
        properties = elastic.all_properties()

        self.assertDictEqual(properties, expected_properties)