Skip to content

Commit

Permalink
1.18 - Implementação e asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuxbaum committed Apr 3, 2021
1 parent 2b2cca3 commit 019710b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 1_introducao/18_classe_interna.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class Lista:
class Celula:
pass


if __name__ == "__main__":
lista_teste = Lista()
celula_teste = Lista().Celula()

assert isinstance(lista_teste, Lista), type(lista_teste)
assert not isinstance(celula_teste, Lista), type(celula_teste)
assert isinstance(celula_teste, Lista.Celula), type(celula_teste)

0 comments on commit 019710b

Please sign in to comment.