from datetime import datetime

from django.test import TestCase
from django.utils.timezone import make_aware

from earthquake_visualizer.models import EarthQuakeFeed


class EarthQuakeFeedTest(TestCase):

    @classmethod
    def setUpTestData(cls):
        EarthQuakeFeed.objects.create(
            id=1009093,
            title='ML 1.8  SPAIN',
            latitude=38.10,
            longitude=-2.35,
            magnitude=1.8,
            time=make_aware(datetime(2021, 7, 13, 23, 22, 37))
        )

    def setUp(self):
        self.earthquake_feed = EarthQuakeFeed.objects.get(id=1009093)

    def test_create_feed(self):
        self.assertEqual(str(self.earthquake_feed), 'ID = 1009093, TITLE = ML 1.8  SPAIN')

b9cc41a0968517c807e00d8d8757560ccdc243f4
<mask token>


class EarthQuakeFeedTest(TestCase):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class EarthQuakeFeedTest(TestCase):
    <mask token>
    <mask token>

    def test_create_feed(self):
        self.assertEqual(str(self.earthquake_feed),
            'ID = 1009093, TITLE = ML 1.8  SPAIN')

<mask token>


class EarthQuakeFeedTest(TestCase):

    @classmethod
    def setUpTestData(cls):
        EarthQuakeFeed.objects.create(id=1009093, title='ML 1.8  SPAIN',
            latitude=38.1, longitude=-2.35, magnitude=1.8, time=make_aware(
            datetime(2021, 7, 13, 23, 22, 37)))

    def setUp(self):
        self.earthquake_feed = EarthQuakeFeed.objects.get(id=1009093)

    def test_create_feed(self):
        self.assertEqual(str(self.earthquake_feed),
            'ID = 1009093, TITLE = ML 1.8  SPAIN')

from datetime import datetime
from django.test import TestCase
from django.utils.timezone import make_aware
from earthquake_visualizer.models import EarthQuakeFeed


class EarthQuakeFeedTest(TestCase):

    @classmethod
    def setUpTestData(cls):
        EarthQuakeFeed.objects.create(id=1009093, title='ML 1.8  SPAIN',
            latitude=38.1, longitude=-2.35, magnitude=1.8, time=make_aware(
            datetime(2021, 7, 13, 23, 22, 37)))

    def setUp(self):
        self.earthquake_feed = EarthQuakeFeed.objects.get(id=1009093)

    def test_create_feed(self):
        self.assertEqual(str(self.earthquake_feed),
            'ID = 1009093, TITLE = ML 1.8  SPAIN')

from datetime import datetime

from django.test import TestCase
from django.utils.timezone import make_aware

from earthquake_visualizer.models import EarthQuakeFeed


class EarthQuakeFeedTest(TestCase):

    @classmethod
    def setUpTestData(cls):
        EarthQuakeFeed.objects.create(
            id=1009093,
            title='ML 1.8  SPAIN',
            latitude=38.10,
            longitude=-2.35,
            magnitude=1.8,
            time=make_aware(datetime(2021, 7, 13, 23, 22, 37))
        )

    def setUp(self):
        self.earthquake_feed = EarthQuakeFeed.objects.get(id=1009093)

    def test_create_feed(self):
        self.assertEqual(str(self.earthquake_feed), 'ID = 1009093, TITLE = ML 1.8  SPAIN')
