def test_new_project(self): options = Values({ 'project_path': '/tmp/', 'output': None, 'format': None, 'create_project': True, }) opt = OptionsValidator(options) # make the path a valid one =) opt.has_project_metadata = Mock() opt.has_project_metadata.return_value = True try: opt.validate() except ValueError as e: self.assertTrue(False, "should never hit this line")