Exemplo n.º 1
0
 def test_card_get_arrow_directions_function_result_length(self):
     card = Card(one, one, tuple_ones, number_of_arrows=2)
     arrows_direction = card.get_arrows_directions()
     assert len(arrows_direction) == card.number_of_arrows
Exemplo n.º 2
0
 def test_card_get_arrow_directions_function_result_contains_only_directions(
         self):
     card = Card(one, one, tuple_ones)
     arrows_direction = card.get_arrows_directions()
     for direction in arrows_direction:
         assert direction in Directions.all_directions
Exemplo n.º 3
0
 def test_card_get_arrow_directions_function_result_is_a_list(self):
     card = Card(one, one, tuple_ones)
     arrows_direction = card.get_arrows_directions()
     assert isinstance(arrows_direction, list)