コード例 #1
0
    def test_group_validation_unit(self):
        env = self._create_bad_env(self.env)

        config = get_config()

        with self.assertRaises(di.GroupConflict):
            di._check_group_branches(config, env['physical_skel'])
コード例 #2
0
    def test_group_validation_unit(self):
        env = self._create_bad_env(self.env)

        config = get_config()

        with self.assertRaises(di.GroupConflict):
            di._check_group_branches(config, env['physical_skel'])
コード例 #3
0
    def test_group_validation_passes_defaults(self):
        config = get_config()

        result = di._check_group_branches(config, self.env['physical_skel'])

        self.assertTrue(result)
コード例 #4
0
 def test_group_validation_no_config(self):
     result = di._check_group_branches(None, self.env)
     self.assertTrue(result)
コード例 #5
0
    def test_group_validation_passes_defaults(self):
        config = get_config()

        result = di._check_group_branches(config, self.env['physical_skel'])

        self.assertTrue(result)
コード例 #6
0
 def test_group_validation_no_config(self):
     result = di._check_group_branches(None, self.env)
     self.assertTrue(result)