Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
covering line for datum
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacBlanco committed Jul 1, 2016
1 parent ae1c5a4 commit 0a8edc8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,15 @@ def test_map_datum_bad(self, mock1):
except ValueError as e:
print str(e)
assert 'Expected mapFromField key to be a dict object' in str(e)


finally:
missing_fields['mapFromField'] = 'field3'

try:
md = MapDatum(missing_fields)
data = {}
md.generate(random, data)
except ValueError as e:
assert 'Could not get key: ' in str(e)



Expand Down

0 comments on commit 0a8edc8

Please sign in to comment.