Skip to content

Commit 8450c37

Browse files
committed
Fixed #108 - Added test case for function "get_custom_field_keys()"
1 parent 4656d19 commit 8450c37

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

about_code_tool/tests/test_about.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,3 +583,14 @@ def test_notice_text_returns_empty_string_when_ref_file_doesnt_exist(self):
583583
self.assertEqual(notice_text, expected)
584584

585585

586+
class OtherTest(unittest.TestCase):
587+
def test_get_custom_field_keys(self):
588+
about_file = about.AboutFile(join(TESTDATA_PATH, 'basic/basic.about'))
589+
custom_keys = about_file.get_custom_field_keys()
590+
expected_keys = ['scm_branch', 'scm_repository', 'signature_gpg_file',
591+
'redistribute_sources', 'about_format', 'usage',
592+
'scm_tool', 'scm_path', 'scm_tag', 'scm_rev',
593+
'organization']
594+
self.assertEqual(custom_keys, expected_keys)
595+
596+

0 commit comments

Comments
 (0)