Skip to content

Commit

Permalink
Fixed #108 - Added test case for function "get_custom_field_keys()"
Browse files Browse the repository at this point in the history
  • Loading branch information
chinyeungli committed Aug 20, 2014
1 parent 4656d19 commit 8450c37
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions about_code_tool/tests/test_about.py
Expand Up @@ -583,3 +583,14 @@ def test_notice_text_returns_empty_string_when_ref_file_doesnt_exist(self):
self.assertEqual(notice_text, expected)


class OtherTest(unittest.TestCase):
def test_get_custom_field_keys(self):
about_file = about.AboutFile(join(TESTDATA_PATH, 'basic/basic.about'))
custom_keys = about_file.get_custom_field_keys()
expected_keys = ['scm_branch', 'scm_repository', 'signature_gpg_file',
'redistribute_sources', 'about_format', 'usage',
'scm_tool', 'scm_path', 'scm_tag', 'scm_rev',
'organization']
self.assertEqual(custom_keys, expected_keys)


0 comments on commit 8450c37

Please sign in to comment.