def test_extra_validation(self):
    conf = dummy_conf()
    s = StoryboardOps(conf, None)
    project = {'name': 'project1', 'source-repositories': ['repo1', 'repo2']}
    logs = s.extra_validations(**project)
    self.assertTrue((len(logs) == 0))
    project = {'name': 'project2', 'source-repositories': ['repo', '-hjook']}
    logs = s.extra_validations(**project)
    self.assertTrue(('Minimal len is 5' in logs[0]))
    self.assertTrue(('should match the RE' in logs[1]))
def test_extra_validation(self):
    conf = dummy_conf()
    s = StoryboardOps(conf, None)
    project = {'name': 'project1', 'source-repositories': ['repo1', 'repo2']}
    logs = s.extra_validations(**project)
    self.assertTrue((len(logs) == 0))
    project = {'name': 'project2', 'source-repositories': ['repo', '-hjook']}
    logs = s.extra_validations(**project)
    self.assertTrue(('Minimal len is 5' in logs[0]))
    self.assertTrue(('should match the RE' in logs[1]))