def test_get_department_data_for_school_single(
         self, mock_get_account_by_sis_account_id):
     """ test that the correct dept is returned when the dept id is provided """
     mock_get_account_by_sis_account_id.return_value = self.department_accounts
     result = get_department_data_for_school(self.school_sis_account_id,
                                             self.department_sis_account_id)
     self.assertEqual(result['id'], self.department_sis_account_id)
 def test_get_department_data_for_school(
         self, mock_get_account_by_sis_account_id):
     """ test that dept account exists in dept list returned when no sis dept is given """
     mock_get_account_by_sis_account_id.return_value = self.department_accounts
     result = get_department_data_for_school(self.school_sis_account_id)
     for account in result:
         self.assertIn(account['id'], self.department_sis_account_ids)
 def test_get_department_data_for_school_single(self, mock_get_account_by_sis_account_id):
     """ test that the correct dept is returned when the dept id is provided """
     mock_get_account_by_sis_account_id.return_value = self.department_accounts
     result = get_department_data_for_school(
         self.school_sis_account_id,
         self.department_sis_account_id
     )
     self.assertEqual(result['id'], self.department_sis_account_id)
 def test_get_department_data_for_school(self, mock_get_account_by_sis_account_id):
     """ test that dept account exists in dept list returned when no sis dept is given """
     mock_get_account_by_sis_account_id.return_value = self.department_accounts
     result = get_department_data_for_school(self.school_sis_account_id)
     for account in result:
         self.assertIn(account['id'], self.department_sis_account_ids)