0002-tests-remove-unused-variable-41342.patch
tests/test_data_transfer.py | ||
---|---|---|
527 | 527 | |
528 | 528 |
def test_export_site(db): |
529 | 529 |
ou = OU.objects.create(name='ou') |
530 |
role = Role.objects.create(name='role', ou=ou)
|
|
530 |
Role.objects.create(name='role', ou=ou) |
|
531 | 531 |
d = export_site() |
532 | 532 |
assert len([ou for ou in d['ous'] if ou['slug'] != 'default']) == 1 |
533 | 533 |
assert len([role for role in d['roles'] if role['slug'][0] != '_']) == 1 |
534 |
- |