def test_get_rawjson():
  book = createbook("9780553293357")
  try:
    if book.get_rawjson()[0:100] == "insert json": 
      return True
  except:
    return False
def test_invalid_isbn_too_short():
  book = createbook("97805532")
  if not book.validate_isbn(): return True 
  return False
def test_valid_isbn():
  book = createbook("9780553293357")
  if book.validate_isbn(): return True 
  return False
def test_api_link_generator():
  book = createbook("9780553293357")
  if book.gen_url() == "https://www.googleapis.com/books/v1/volumes?q=isbn:9780553293357": return True
  return False
def test_invalid_isbn_zeros():
  book = createbook("0000000000001")
  if not book.validate_isbn(): return True 
  return False
def test_invalid_isbn_numericity():
  book = createbook("978055asdfd12")
  if not book.validate_isbn(): return True 
  return False