

def assert_yaml_contains_datetime(self, yaml, dt):
    six.assertRegex(self, yaml, ("\\n  fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)))

dataset/ETHPy150Open django/django/tests/timezones/tests.py SerializationTests.assert_yaml_contains_datetime/original