def test_hapi_time_to_url_enc_openstack_time_with_dot_only(self): hapi_time = "20150624081005." actual = Common.hapi_time_to_url_enc_openstack_time(hapi_time) expect = "2015-06-24T08%3A10%3A05.000000" self.assertEqual(actual, expect)
def test_hapi_time_to_url_enc_openstack_time_with_dot_only(self): hapi_time = "20150624081005." actual = Common.hapi_time_to_url_enc_openstack_time(hapi_time) expect = "2015-06-24T08%3A10%3A05.000000" self.assertEqual(actual, expect)
def test_hapi_time_to_url_enc_openstack_time_with_ns(self): hapi_time = "20150624081005.123456789" actual = Common.hapi_time_to_url_enc_openstack_time(hapi_time) expect = "2015-06-24T08%3A10%3A05.123456" self.assertEqual(actual, expect)
def test_hapi_time_to_url_enc_openstack_time_with_ns(self): hapi_time = "20150624081005.123456789" actual = Common.hapi_time_to_url_enc_openstack_time(hapi_time) expect = "2015-06-24T08%3A10%3A05.123456" self.assertEqual(actual, expect)