Skip to content

Commit

Permalink
Getting started on Chapter07
Browse files Browse the repository at this point in the history
  • Loading branch information
adomokos committed Oct 16, 2020
1 parent 258f90c commit c32b886
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/python_tricks/chapter07_spec.py
@@ -0,0 +1,15 @@
from mamba import description, it, context # type: ignore
# from expects import expect, raise_error # type: ignore

from typing import Dict

name_for_userid: Dict[int, str] = {
382: 'Alice',
950: 'Bob',
590: 'Dilbert',
}

with description('Chapter07') as self:
with context('dictionary'):
with it('can return a default value if key not found'):
assert 2 > 1

0 comments on commit c32b886

Please sign in to comment.