MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / test_fix_date

Method test_fix_date

tests/test_api_utilities.py:51–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.assertFalse(isinstance(returned_values, str))
50
51 def test_fix_date(self):
52 self.assertListEqual(
53 fix_date("02:05:2019"),
54 ['02:05:2019', '02:05:2019 23:59:59']
55 )
56 self.assertListEqual(
57 fix_date("02:05:2019 | 01:05:2019"),
58 ['02:05:2019 ', ' 01:05:2019']
59 )
60 self.assertListEqual(
61 fix_date("02/05/2019 | 01/05/2019"),
62 ['02/05/2019 00:00:00', ' 01/05/2019 23:59:59']
63 )
64 self.assertListEqual(
65 fix_date("02/05/2019"),
66 ['02/05/2019 00:00:00', '02/05/2019 23:59:59']
67 )

Callers

nothing calls this directly

Calls 1

fix_dateFunction · 0.90

Tested by

no test coverage detected