Testing for all values

This commit is contained in:
Carlos Lopez 2020-07-23 07:41:29 -06:00
parent 41cbce8e01
commit 74e5e07114
1 changed files with 9 additions and 0 deletions

View File

@ -98,4 +98,13 @@ class TestLdapLookupScript(BaseTest):
task = self.get_workflow_api(workflow).next_task task = self.get_workflow_api(workflow).next_task
self.assertEqual(task.data['Supervisor']['display_name'], 'Dan Funk')
self.assertEqual(task.data['Supervisor']['given_name'], 'Dan')
self.assertEqual(task.data['Supervisor']['email_address'], 'dhf8r@virginia.edu')
self.assertEqual(task.data['Supervisor']['telephone_number'], '+1 (434) 924-1723')
self.assertEqual(task.data['Supervisor']['title'], 'E42:He\'s a hoopy frood')
self.assertEqual(task.data['Supervisor']['department'], 'E0:EN-Eng Study of Parallel Universes')
self.assertEqual(task.data['Supervisor']['affiliation'], 'faculty')
self.assertEqual(task.data['Supervisor']['sponsor_type'], 'Staff')
self.assertEqual(task.data['Supervisor']['uid'], 'dhf8r')
self.assertEqual(task.data['Supervisor']['proper_name'], 'Dan Funk - (dhf8r)') self.assertEqual(task.data['Supervisor']['proper_name'], 'Dan Funk - (dhf8r)')