@@ -0,0 +1,1806 @@
+from tests.BaseTest import BaseTest%0Afrom events.models import Location%0A%0A%0Aclass LocationModelTest(BaseTest):%0A%0A    def test_location(self):%0A        location = self.event_data.create_location(1)%0A        query_result = Location.objects.get(slug=%22location-1%22)%0A        self.assertEqual(%0A            query_result,%0A            location%0A        )%0A%0A    def test_location_slug(self):%0A        self.event_data.create_location(1)%0A        query_result = Location.objects.get(slug=%22location-1%22)%0A        self.assertEqual(%0A            query_result.slug,%0A            %22location-1%22%0A        )%0A%0A    def test_location_slug_unique(self):%0A        self.event_data.create_location(1)%0A        self.event_data.create_location(1)%0A        self.event_data.create_location(1)%0A        Location.objects.get(slug=%22location-1%22)%0A        Location.objects.get(slug=%22location-1-2%22)%0A        Location.objects.get(slug=%22location-1-3%22)%0A%0A    def test_location_name(self):%0A        self.event_data.create_location(1)%0A        query_result = Location.objects.get(slug=%22location-1%22)%0A        self.assertEqual(%0A            query_result.name,%0A            %22Location 1%22%0A        )%0A%0A    def test_location_description(self):%0A        self.event_data.create_location(1)%0A        query_result = Location.objects.get(slug=%22location-1%22)%0A        self.assertEqual(%0A            query_result.description,%0A            %22Description for Location 1%22%0A        )%0A%0A    def test_location_absolute_url(self):%0A        self.event_data.create_location(1)%0A        query_result = Location.objects.get(slug=%22location-1%22)%0A        self.assertEqual(%0A            query_result.get_absolute_url(),%0A            %22/events/location/location-1/%22%0A        )%0A%0A    def test_location_str(self):%0A        location = self.event_data.create_location(1)%0A        self.assertEqual(location.__str__(), %22Location 1%22)%0A

Add tests for events Location model