@@ -32,7 +32,7 @@ def _compare_character(self, mock_character, character):
3232 self .assertEqual (mock_character .sex , character .sex )
3333
3434 # region Tibia.com Character Tests
35- def test_from_content (self ):
35+ def test_character_from_content (self ):
3636 """Testing parsing a character's HTML content"""
3737 character = Character .from_content (self ._load_resource (FILE_CHARACTER_RESOURCE ))
3838 self ._compare_character (Character ("Tschas" , "Gladera" , Vocation .DRUID , 260 , Sex .FEMALE ), character )
@@ -54,13 +54,13 @@ def test_from_content(self):
5454 self .assertEqual (5 , len (character .other_characters ))
5555 self .assertFalse (character .hidden )
5656
57- def test_from_content_not_found (self ):
57+ def test_character_from_content_not_found (self ):
5858 """Testing parsing a character not found page"""
5959 content = self ._load_resource (FILE_CHARACTER_NOT_FOUND )
6060 char = Character .from_content (content )
6161 self .assertIsNone (char )
6262
63- def test_from_content_with_former_names (self ):
63+ def test_character_from_content_with_former_names (self ):
6464 """Testing parsing a character that has former names"""
6565 content = self ._load_resource (FILE_CHARACTER_FORMER_NAMES )
6666 char = Character .from_content (content )
@@ -74,15 +74,15 @@ def test_from_content_with_former_names(self):
7474 self .assertEqual (char .house .world , char .world )
7575 self .assertIsInstance (char .house .paid_until_date , datetime .date )
7676
77- def test_from_content_with_position (self ):
77+ def test_character_from_content_with_position (self ):
7878 """Testing parsing a character with a position"""
7979 content = self ._load_resource (FILE_CHARACTER_SPECIAL_POSITION )
8080 char = Character .from_content (content )
8181 self .assertEqual (char .name , "Steve" )
8282 self .assertEqual (char .position , "CipSoft Member" )
8383 self .assertEqual (char .account_information .position , "CipSoft Member" )
8484
85- def test_from_content_deleted_character (self ):
85+ def test_character_from_content_deleted_character (self ):
8686 """Testing parsing a character scheduled for deletion"""
8787 content = self ._load_resource (FILE_CHARACTER_DELETION )
8888 char = Character .from_content (content )
@@ -91,7 +91,7 @@ def test_from_content_deleted_character(self):
9191 self .assertIsInstance (char .deletion_date , datetime .datetime )
9292 self .assertEqual (parse_tibia_datetime ("Oct 08 2018 22:17:00 CEST" ), char .deletion_date )
9393
94- def test_from_content_complex_deaths (self ):
94+ def test_character_from_content_complex_deaths (self ):
9595 """Testing parsing a character with complex deaths (summons, assists, etc)"""
9696 content = self ._load_resource (FILE_CHARACTER_DEATHS_COMPLEX )
9797 char = Character .from_content (content )
@@ -101,7 +101,7 @@ def test_from_content_complex_deaths(self):
101101 oldest_death = char .deaths [- 1 ]
102102 self .assertEqual (oldest_death .killer .summon , "a fire elemental" )
103103
104- def test_from_content_badges_and_title (self ):
104+ def test_character_from_content_badges_and_title (self ):
105105 """Testing parsing a character with account badges and a title"""
106106 content = self ._load_resource (FILE_CHARACTER_TITLE_BADGES )
107107 char = Character .from_content (content )
@@ -117,7 +117,7 @@ def test_from_content_badges_and_title(self):
117117 self .assertIsInstance (badge .icon_url , str )
118118 self .assertIsInstance (badge .description , str )
119119
120- def test_from_content_unrelated (self ):
120+ def test_character_from_content_unrelated (self ):
121121 """Testing parsing an unrelated tibia.com section"""
122122 content = self ._load_resource (self .FILE_UNRELATED_SECTION )
123123 with self .assertRaises (InvalidContent ):
@@ -139,7 +139,7 @@ def test_death_types(self):
139139
140140 # region TibiaData Character tests
141141
142- def test_from_tibiadata (self ):
142+ def test_character_from_tibiadata (self ):
143143 """Testing parsing TibiaData content"""
144144 content = self ._load_resource (FILE_CHARACTER_TIBIADATA )
145145 char = Character .from_tibiadata (content )
@@ -157,7 +157,7 @@ def test_from_tibiadata(self):
157157
158158 self .assertTrue (char .deaths [3 ].by_player )
159159
160- def test_from_tibiadata_unhidden (self ):
160+ def test_character_from_tibiadata_unhidden (self ):
161161 """Testing parsing an unhidden character"""
162162 content = self ._load_resource (FILE_CHARACTER_TIBIADATA_UNHIDDEN )
163163 char = Character .from_tibiadata (content )
@@ -172,7 +172,7 @@ def test_from_tibiadata_unhidden(self):
172172 self .assertEqual (char .house .world , char .world )
173173 self .assertIsInstance (char .house .paid_until_date , datetime .date )
174174
175- def test_from_tibiadata_deleted (self ):
175+ def test_character_from_tibiadata_deleted (self ):
176176 """Testing parsing a deleted character"""
177177 content = self ._load_resource (FILE_CHARACTER_TIBIADATA_DELETED )
178178 char = Character .from_tibiadata (content )
@@ -184,15 +184,15 @@ def test_from_tibiadata_deleted(self):
184184 self .assertIsNone (char .guild_name )
185185 self .assertIsNone (char .last_login )
186186
187- def test_from_tibiadata_position (self ):
187+ def test_character_from_tibiadata_position (self ):
188188 """Testing parsing a character with position"""
189189 content = self ._load_resource (FILE_CHARACTER_TIBIADATA_SPECIAL_POSITION )
190190 char = Character .from_tibiadata (content )
191191 self .assertEqual (char .name , "Steve" )
192192 self .assertEqual (char .position , "CipSoft Member" )
193193 self .assertEqual (char .account_information .position , "CipSoft Member" )
194194
195- def test_from_tibiadata_summon_deaths (self ):
195+ def test_character_from_tibiadata_summon_deaths (self ):
196196 """Testing parsing a character with summon deaths"""
197197 content = self ._load_resource (FILE_CHARACTER_TIBIADATA_DEATHS_SUMMON )
198198 char = Character .from_tibiadata (content )
@@ -202,18 +202,18 @@ def test_from_tibiadata_summon_deaths(self):
202202 self .assertTrue (summon_death .killers [2 ].summon , "a fire elemental" )
203203 self .assertTrue (summon_death .killers [2 ].name , "Hasi Pupsi" )
204204
205- def test_from_tibiadata_not_found (self ):
205+ def test_character_from_tibiadata_not_found (self ):
206206 """Testing parsing a not found character"""
207207 content = self ._load_resource (FILE_CHARACTER_TIBIADATA_NOT_FOUND )
208208 char = Character .from_tibiadata (content )
209209 self .assertIsNone (char )
210210
211- def test_from_tibiadata_invalid_json (self ):
211+ def test_character_from_tibiadata_invalid_json (self ):
212212 """Testing parsing an invalid JSON string"""
213213 with self .assertRaises (InvalidContent ):
214214 Character .from_tibiadata ("<html><b>Not a json string</b></html>" )
215215
216- def test_from_tibiadata_unrelated_json (self ):
216+ def test_character_from_tibiadata_unrelated_json (self ):
217217 """Testing parsing an unrelated TibiaData section"""
218218 with self .assertRaises (InvalidContent ):
219219 Character .from_tibiadata (self ._load_resource (tests .tests_guild .FILE_GUILD_TIBIADATA ))
0 commit comments