def test_time_format_only_format(self): ext_fn = TimeFormatExtraction('EEEE') actual = ext_fn.build() expected = { 'type': 'timeFormat', 'format': 'EEEE', } assert actual == expected
def test_time_format_no_timezone(self): ext_fn = TimeFormatExtraction('EEEE', 'en-US') actual = ext_fn.build() expected = { 'type': 'timeFormat', 'format': 'EEEE', 'locale': 'en-US', } assert actual == expected
def test_time_format_all_set(self): ext_fn = TimeFormatExtraction("EEEE", "en-US", "Europe/Berlin") actual = ext_fn.build() expected = { "type": "timeFormat", "format": "EEEE", "locale": "en-US", "timeZone": "Europe/Berlin", } assert actual == expected
def test_time_format_all_set(self): ext_fn = TimeFormatExtraction('EEEE', 'en-US', 'Europe/Berlin') actual = ext_fn.build() expected = { 'type': 'timeFormat', 'format': 'EEEE', 'locale': 'en-US', 'timeZone': 'Europe/Berlin' } assert actual == expected
def test_time_format_only_format(self): ext_fn = TimeFormatExtraction("EEEE") actual = ext_fn.build() expected = {"type": "timeFormat", "format": "EEEE"} assert actual == expected
def test_time_format_no_timezone(self): ext_fn = TimeFormatExtraction("EEEE", "en-US") actual = ext_fn.build() expected = {"type": "timeFormat", "format": "EEEE", "locale": "en-US"} assert actual == expected
def test_time_format_all_set(self): ext_fn = TimeFormatExtraction("EEEE", "en-US", "Europe/Berlin") actual = ext_fn.build() expected = {"type": "timeFormat", "format": "EEEE", "locale": "en-US", "timeZone": "Europe/Berlin"} assert actual == expected