예제 #1
0
파일: test_cities.py 프로젝트: concyb/pgrid
 def test_phase_two_player_already_in_city(self):
     test_city = City('Test')
     player = MagicMock()
     test_city.zones[0].owner = 'test'
     player_name = PropertyMock(return_value='test')
     type(player).name = player_name
     self.assertFalse(test_city.has_free_zone(2, player))
예제 #2
0
파일: test_cities.py 프로젝트: concyb/pgrid
 def test_phase_three_no_free_zone(self):
     test_city = City('Test')
     player = MagicMock()
     test_city.zones[0].owner = "Test"
     test_city.zones[1].owner = "Test"
     test_city.zones[2].owner = "Test"
     self.assertFalse(test_city.has_free_zone(3, player))
예제 #3
0
파일: test_cities.py 프로젝트: concyb/pgrid
 def test_phase_one_free_zone(self):
     test_city = City('Test')
     player = MagicMock()
     self.assertTrue(test_city.has_free_zone(1, player))
예제 #4
0
파일: test_cities.py 프로젝트: concyb/pgrid
 def test_phase_three_second_zone_free(self):
     test_city = City('Test')
     player = MagicMock()
     test_city.zones[0].owner = "Test"
     self.assertTrue(test_city.has_free_zone(3, player))
예제 #5
0
파일: test_cities.py 프로젝트: concyb/pgrid
 def test_phase_one_no_free_zone(self):
     test_city = City('Test')
     test_city.zones[0].owner = "Test"
     player = MagicMock()
     self.assertFalse(test_city.has_free_zone(1, player))