def add_local_properties(self): client_context = self.create_client_context("console") client_context.brain.properties.add_property("name", "ProgramR") client_context.brain.properties.add_property("app_version", "1.0.0") client_context.brain.properties.add_property("grammar_version", "1.0.0") date_formatter = DateFormatter() client_context.brain.properties.add_property( "birthdate", date_formatter.locate_appropriate_date_time())
def test_locate_appropriate_date_time(self): df = DateFormatter() self.assertIsNotNone(df) result = df.locate_appropriate_date_time() self.assertIsNotNone(result) self.assertRegex(result, TextUtilsTests.DEFAULT_DATETIME_REGEX)