mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-12-02 08:09:09 +00:00
16 lines
383 B
Python
16 lines
383 B
Python
from django.test import TestCase
|
|
from pokemon_v2.models import *
|
|
|
|
|
|
class AbilityTestCase(TestCase):
|
|
|
|
def setUp(self):
|
|
Ability.objects.create(
|
|
name="Smell",
|
|
generation_id=3,
|
|
is_main_series=True
|
|
)
|
|
|
|
def fields_are_valid(self):
|
|
smell = Ability.objects.get(name="Smell")
|
|
self.assertEqual(smell.generation_id, 3)
|