-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathcht-legend-access.feature
31 lines (24 loc) · 1.01 KB
/
cht-legend-access.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Feature: Access chart legend
In order to customize the legend for a chart
As a developer using python-pptx
I need a way to access the chart legend
Scenario Outline: Determine presence of legend
Given a chart <having-or-not> a legend
Then chart.has_legend is <expected-value>
Examples: chart.has_legend states
| having-or-not | expected-value |
| having | True |
| not having | False |
Scenario Outline: Adding a legend
Given a chart <having-or-not> a legend
When I assign <value> to chart.has_legend
Then chart.has_legend is <expected-value>
Examples: chart.has_legend states
| having-or-not | value | expected-value |
| having | False | False |
| not having | True | True |
| having | True | True |
| not having | False | False |
Scenario: Access legend object of chart
Given a chart having a legend
Then chart.legend is a legend object