def test_validate(self): """Test validate method.""" oo = Object() self.assertTrue(oo.validate(objdir='fixtures/1.0/good-objects/minimal_one_version_one_file')) # Error cases self.assertFalse(oo.validate(objdir='fixtures/1.0/bad-objects/E001_E004_no_files')) self.assertFalse(oo.validate(objdir='fixtures/1.0/bad-objects/E001_no_decl')) self.assertFalse(oo.validate(objdir='fixtures/1.0/bad-objects/E036_no_id'))
def test12_validate(self): """Test validate method.""" oo = Object() self.assertTrue(oo.validate(path='fixtures/1.0/objects/of1')) # Error cases self.assertFalse( oo.validate(path='fixtures/1.0/bad-objects/bad00_no_files')) self.assertFalse( oo.validate(path='fixtures/1.0/bad-objects/bad01_no_decl')) self.assertFalse( oo.validate(path='fixtures/1.0/bad-objects/bad02_no_id'))