Total Complexity | 7 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import os |
||
2 | |||
3 | import pytest |
||
4 | |||
5 | import ssg.products |
||
6 | |||
7 | |||
8 | def test_get_all(): |
||
9 | ssg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../..")) |
||
10 | products = ssg.products.get_all(ssg_root) |
||
11 | |||
12 | assert "fedora" in products.linux |
||
13 | assert "fedora" not in products.other |
||
14 | |||
15 | assert "rhel7" in products.linux |
||
16 | assert "rhel7" not in products.other |
||
17 | |||
18 | assert "jre" in products.other |
||
19 | assert "jre" not in products.linux |
||
20 |