Skip to content

Commit

Permalink
added test with basic exif string
Browse files Browse the repository at this point in the history
Per [jMyles](sdispater#101) this
adds a test in pytest format with a single example
  • Loading branch information
emattiza committed Mar 17, 2017
1 parent 06b0085 commit d50333e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/parsing_test/test_parser.py
Expand Up @@ -561,3 +561,15 @@ def test_invalid(self):
text = '2012-W13-8'

self.assertRaises(ParserError, Parser().parse, text)

def test_exif_edge_case(self):
text = '2016:12:26 15:45:28'

parsed = Parser().parse(text)

self.assertEqual(2016, parsed['year'])
self.assertEqual(12, parsed['month'])
self.assertEqual(26, parsed['day'])
self.assertEqual(15, parsed['hour'])
self.assertEqual(45, parsed['minute'])
self.assertEqual(28, parsed['second'])

0 comments on commit d50333e

Please sign in to comment.