Exemplo n.º 1
0
 def __init__(self, name):
     self.name = name
     self.username = names.get_best_item_name(name)
Exemplo n.º 2
0
 def test_get_best_item_name(self):
     self.assertEqual(names.get_best_item_name('basic-armor'), 'Iron armor')
Exemplo n.º 3
0
 def test_get_best_item_name_missing(self):
     self.assertEqual(
         names.get_best_item_name('missing-name'),
         'missing-name')
Exemplo n.º 4
0
 def production_machine_username(self):
     if self._producer is None:
         return None
     return names.get_best_item_name(self._producer.name)