Example #1
0
 def test_preferences_serialization(self):
     self.hero.preferences.set(relations.PREFERENCE_TYPE.MOB,
                               mobs_storage.mobs.all()[0])
     data = self.hero.preferences.serialize()
     self.assertEqual(data, HeroPreferences.deserialize(data).serialize())
Example #2
0
 def test_preferences_serialization(self):
     self.hero.preferences.set(
         relations.PREFERENCE_TYPE.COMPANION_DEDICATION, self.egoism)
     data = self.hero.preferences.serialize()
     self.assertEqual(data, HeroPreferences.deserialize(data).serialize())
Example #3
0
 def test_preferences_serialization(self):
     self.hero.preferences.set(relations.PREFERENCE_TYPE.COMPANION_EMPATHY,
                               self.empath)
     data = self.hero.preferences.serialize()
     self.assertEqual(data, HeroPreferences.deserialize(data).serialize())
Example #4
0
 def test_preferences_serialization(self):
     self.hero.preferences.set(relations.PREFERENCE_TYPE.ARCHETYPE,
                               self.mage)
     data = self.hero.preferences.serialize()
     self.assertEqual(data, HeroPreferences.deserialize(data).serialize())
Example #5
0
 def test_preferences_serialization(self):
     self.hero.preferences.set(relations.PREFERENCE_TYPE.RISK_LEVEL,
                               self.risk_1)
     data = self.hero.preferences.serialize()
     self.assertEqual(data, HeroPreferences.deserialize(data).serialize())
Example #6
0
 def test_preferences_serialization(self):
     self.hero.preferences.set(relations.PREFERENCE_TYPE.FAVORITE_ITEM,
                               self.slot_1)
     data = self.hero.preferences.serialize()
     self.assertEqual(data, HeroPreferences.deserialize(data).serialize())
Example #7
0
 def test_preferences_serialization(self):
     data = self.hero.preferences.serialize()
     self.assertEqual(data, HeroPreferences.deserialize(data).serialize())
Example #8
0
 def test_preferences_serialization(self):
     self.hero.preferences.set(relations.PREFERENCE_TYPE.ENEMY,
                               persons_storage.persons[self.enemy_id])
     data = self.hero.preferences.serialize()
     self.assertEqual(data, HeroPreferences.deserialize(data).serialize())