Skip to content

Commit

Permalink
Expanded testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew J. Sonne committed Jun 25, 2017
1 parent 834ae7d commit 11f512f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/unittest/python/evaluation_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@

class TestEvaluations(unittest.TestCase):
def test_missingtimestamp(self):
evaluation = AWSConfigEvaluation(AWSConfigEvaluation.TYPE_NON_COMPLIANT, 'debug')
evaluation = AWSConfigEvaluation(
AWSConfigEvaluation.TYPE_NON_COMPLIANT,
'debug'
).set(
OrderingTimestamp=None
)
payload = evaluation.to_dict()
self.assertRegexpMatches(payload['OrderingTimestamp'], r"\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d+Z")

Expand Down

0 comments on commit 11f512f

Please sign in to comment.