def test_dataset_is_valid_valid_not(self): """Test Dataset.is_valid() with non-valid data.""" ds = Dataset() ds.import_metadata(TEST_DIR + '/data/dataset_full.json') ds.title = None assert not ds.is_valid()
def test_dataset_is_valid_valid(self): """Test Dataset.is_valid() with valid data.""" ds = Dataset() ds.import_metadata(TEST_DIR + '/data/dataset_full.json') assert ds.is_valid()