Exemplo n.º 1
0
 def test_case_child_leaf_is_set(self):
     result = group_element_year._build_child_key(child_leaf=5678)
     self.assertEqual(result, 'base_learningunityear_5678')
Exemplo n.º 2
0
 def test_case_two_params_are_set(self):
     with self.assertRaises(AttributeError):
         group_element_year._build_child_key(child_branch=1234,
                                             child_leaf=5678)
Exemplo n.º 3
0
 def test_case_child_branch_is_set(self):
     result = group_element_year._build_child_key(child_branch=5678)
     self.assertEqual(result, 'base_educationgroupyear_5678')
Exemplo n.º 4
0
 def test_case_params_are_none(self):
     with self.assertRaises(AttributeError):
         group_element_year._build_child_key()