def test_validate_bad_date():
    """Confirm validator fails bad dates."""
    assert not validate_data('tacos tacos tacos', 'Date')
def test_validate_good_date():
    """Confirm validator accepts good dates."""
    assert validate_data('2017-09-04', 'Date')
def test_validate_bad_decimal():
    """Test function for validating bad decimal data."""
    assert not validate_data('123456a.012', 'Decimal')
def test_validate_good_decimal():
    """Test function for validating good decimal data."""
    assert validate_data('123456.7890', 'Decimal')
def test_validate_data_bad_integer():
    """Test function for validating integer data with a bad integer."""
    assert not validate_data('1234ab', 'Integer')
def test_validate_data_good_integer():
    """Test function to validate one part of a tuple."""
    assert validate_data('1234567', 'Integer')