Exemplo n.º 1
0
 def test_build_dict_known(self):
     city = City()
     city.known_for = "food"
     
     city_dict = city.build_dictionary()
     assert city_dict["known for"] == "food"
Exemplo n.º 2
0
 def test_build_dict_calamity(self):
     city = City()
     city.calamity = "doom"
     
     city_dict = city.build_dictionary()
     assert city_dict["calamity"] == "doom"
Exemplo n.º 3
0
 def test_build_dict_trait(self):
     city = City()
     city.notable_trait = "river"
     
     city_dict = city.build_dictionary()
     assert city_dict["notable trait"] == "river"
Exemplo n.º 4
0
 def test_build_dict_ruler(self):
     city = City()
     city.ruler_status = "just"
     
     city_dict = city.build_dictionary()
     assert city_dict["ruler status"] == "just"
Exemplo n.º 5
0
 def test_build_dict_race(self):
     city = City()
     city.race_relation = "good"
     
     city_dict = city.build_dictionary()
     assert city_dict["race relation"] == "good"
Exemplo n.º 6
0
 def test_build_dict_pop(self):
     city = City()
     city.population = 100
     
     city_dict = city.build_dictionary()
     assert city_dict["population"] == 100
Exemplo n.º 7
0
 def test_build_dict_name(self):
     city = City()
     city.name = "test"
     
     city_dict = city.build_dictionary()
     assert city_dict["name"] == "test"