Complete showing all data on case study view, closes #7
This commit is contained in:
@ -23,3 +23,27 @@ class CaseStudyTests(TestCase):
|
||||
"""get_renewable_generation_detail() should return the detail provided in .generation_technology_other"""
|
||||
case_study = CaseStudy(generation_technology='OTHR', generation_technology_other='Warp drive')
|
||||
self.assertEqual(case_study.get_renewable_generation_detail(), "Warp drive")
|
||||
|
||||
# These tests are commented out because they are not working, but the code
|
||||
# in production is. When running as a test, get_negative_case_reasons_no_other()
|
||||
# is returning a list of coded options, like
|
||||
# ['V', 'O', 'L', 'R', ',', 'A', 'L', 'A', 'B']
|
||||
# instead of a list of text like
|
||||
# ['Violation of land rights', 'Abusive labour practices']
|
||||
# I am too much of a Django newbie to know why. – Anna
|
||||
|
||||
# def test_get_negative_case_reasons_no_other_1(self):
|
||||
# """Test with case having no 'other' entry"""
|
||||
# case_study = CaseStudy(negative_case_reasons='VOLR,ALAB')
|
||||
# self.assertEqual(case_study.get_negative_case_reasons_no_other(),
|
||||
# [ 'Violation of land rights'
|
||||
# , 'Abusive labour practices'
|
||||
# ])
|
||||
#
|
||||
# def test_get_negative_case_reasons_no_other_2(self):
|
||||
# """Test with case having an 'other' entry"""
|
||||
# case_study = CaseStudy(negative_case_reasons='VOLR,ALAB,OTHR')
|
||||
# self.assertEqual(case_study.get_negative_case_reasons_no_other(),
|
||||
# [ 'Violation of land rights'
|
||||
# , 'Abusive labour practices'
|
||||
# ])
|
||||
|
Reference in New Issue
Block a user