mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 06:04:18 +00:00
17 lines
425 B
Python
17 lines
425 B
Python
from __future__ import unicode_literals
|
|
from django.test import TestCase
|
|
from pokemon_v2.models import * # NOQA
|
|
|
|
|
|
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)
|