from unittest import TestCase
from game import make_enemy_difficulty_one


class Test(TestCase):
    def test_correct_length(self):
        player_character = make_enemy_difficulty_one()
        expected_length = 4
        self.assertEqual(expected_length, len(player_character))

    def test_correct_keys(self):
        enemy = make_enemy_difficulty_one()
        self.assertIn("name", enemy)
        self.assertIn("health", enemy)
        self.assertIn("experience_points", enemy)
        self.assertIn("maximum_damage", enemy)

    def test_correct_values(self):
        enemy = make_enemy_difficulty_one()
        self.assertEqual("Dinghy", enemy["name"])
        self.assertEqual(10, enemy["health"])
        self.assertEqual(25, enemy["experience_points"])
        self.assertEqual(5, enemy["maximum_damage"])
